Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at main.c:105

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

login_accept

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/login-common/main.c)expand/collapse
Show more  
 83  static void (void *context)
 84  {
 85          int listen_fd = POINTER_CAST_TO(context, int);
 86          struct ip_addr remote_ip, local_ip;
 87          unsigned int remote_port, local_port;
 88          struct client *client;
 89          int fd;
 90   
 91[+]         fd = net_accept(listen_fd, &remote_ip, &remote_port);
 92          if (fd < 0) {
 93                  if (fd < -1)
 94                          i_error("accept() failed: %m");
 95                  return;
 96          }
 97          i_set_failure_ip(&remote_ip);
 98   
 99[+]         if (net_getsockname(fd, &local_ip, &local_port) < 0) {
 100                  memset(&local_ip, 0, sizeof(local_ip));
 101                  local_port = 0;
 102          }
 103   
 104[+]         client = client_create(fd, FALSE, &local_ip, &remote_ip);
 105          client->remote_port = remote_port;
Show more  




Change Warning 7934.25504 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: