Text   |  XML   |  ReML   |   Visible Warnings:

Leak  at auth-master-listener.c:95

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

auth_master_listener_accept

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/auth-master-listener.c)expand/collapse
Show more  
 90  static void auth_master_listener_accept(struct auth_master_listener_socket *s)
 91  {
 92          struct auth_master_connection *master;
 93          int fd;
 94   
 95[+]         fd = net_accept(s->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  
 96          if (fd < 0) {
 97                  if (fd < -1)
 98                          i_error("accept(type %d) failed: %m", s->type);
 99          } else {
 100[+]                 net_set_nonblock(fd, TRUE);
 101   
 102                  switch (s->type) {
 103                  case LISTENER_CLIENT:
 104                          (void)auth_client_connection_create(s->listener, fd);
 105                          break;
 106                  case LISTENER_MASTER:
 107                          /* we'll just replace the previous master.. */
 108                          master = auth_master_connection_create(s->listener, fd);
 109                          auth_master_connection_send_handshake(master);
 110                          break;
 111                  }
 112          }
 113  }
Show more  




Change Warning 7577.25768 : Leak

Priority:
State:
Finding:
Owner:
Note: