Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at main.c:143

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

login_accept_ssl

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/login-common/main.c)expand/collapse
Show more  
 114  static void (void *context)
 115  {
 116          int listen_fd = POINTER_CAST_TO(context, int);
 117          struct ip_addr remote_ip, local_ip;
 118          unsigned int remote_port, local_port;
 119          struct client *client;
 120          struct ssl_proxy *proxy;
 121          int fd, fd_ssl;
 122   
 123[+]         fd = net_accept(listen_fd, &remote_ip, &remote_port);
 124          if (fd < 0) {
 125                  if (fd < -1)
 126                          i_error("accept() failed: %m");
 127                  return;
 128          }
 129          i_set_failure_ip(&remote_ip);
 130   
 131[+]         if (net_getsockname(fd, &local_ip, &local_port) < 0) {
 132                  memset(&local_ip, 0, sizeof(local_ip));
 133                  local_port = 0;
 134          }
 135   
 136          connection_queue_add(1);
 137   
 138[+]         fd_ssl = ssl_proxy_new(fd, &remote_ip, &proxy);
 139          if (fd_ssl == -1)
 140                  net_disconnect(fd);
 141          else {
 142[+]                 client = client_create(fd_ssl, TRUE, &local_ip, &remote_ip);
 143                  client->proxy = proxy;
Show more  




Change Warning 7931.25770 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: