Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at auth-process.c:289

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

auth_worker_input

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/auth-process.c)expand/collapse
Show more  
 285  static void auth_worker_input(struct auth_process *p)
 286  {
 287          int fd;
 288   
 289[+]         fd = net_accept(p->worker_listen_fd, NULL, NULL);
expand/collapse

net_accept

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/network.c)expand/collapse
Show more  
 425  int net_accept(int fd, struct ip_addr *addr, unsigned int *port)
 426  {
 427          union sockaddr_union so;
 428          int ret;
 429          socklen_t addrlen;
 430   
 431          i_assert(fd >= 0);
 432   
 433          addrlen = sizeof(so);
 434          ret = accept(fd, &so.sa, &addrlen);
 435   
 436          if (ret < 0) {
 437                  if (errno == EAGAIN || errno == ECONNABORTED)
 438                          return -1;
 439                  else 
 440                          return -2;
 441          }
 442   
 443          if (addr != NULL) sin_get_ip(&so, addr);
 444          if (port != NULL) *port = sin_get_port(&so);
 445   
 446          return ret;
Show more  
 290          if (fd < 0) {
 291                  if (fd == -2)
 292                          i_error("accept(worker) failed: %m");
 293                  return;
 294          }
 295   
 296[+]         net_set_nonblock(fd, TRUE);
 297[+]         fd_close_on_exec(fd, TRUE);
 298   
 299[+]         create_auth_worker(p, fd);
 300  }
Show more  




Change Warning 7764.25206 : Leak

Priority:
State:
Finding:
Owner:
Note: