Text   |  XML   |  ReML   |   Visible Warnings:

Free Null Pointer  at client.c:397

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

proxy_failed

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/pop3-login/pop3-proxy.c)expand/collapse
Show more  
 25  static void proxy_failed(struct pop3_client *client, bool send_line)
 26  {
 27          if (send_line)
 28                  client_send_line(client, PROXY_FAILURE_MSG);
 29   
 30          (&client->proxy);
 31          proxy_free_password(client);
 32          i_free_and_null(client->proxy_user);
 33          i_free_and_null(client->proxy_master_user);
 34   
 35          /* call this last - it may destroy the client */
 36[+]         client_auth_failed(client, TRUE);
expand/collapse

client_auth_failed

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/pop3-login/client-authenticate.c)expand/collapse
Show more  
 96  void client_auth_failed(struct pop3_client *client, bool nodelay)
 97  {
 98          unsigned int delay_msecs;
 99   
 100          if (client->auth_initializing)
 101                  return;
 102   
 103          if (client->io != NULL)
 104                  io_remove(&client->io);
 105          if (nodelay) {
 106                  client->io = io_add(client->common.fd, IO_READ,
 107                                      client_input, client);
 108[+]                 client_input(client);
expand/collapse

client_input

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/pop3-login/client.c)expand/collapse
Show more  
 192  void client_input(struct pop3_client *client)
 193  {
 194          char *line, *args;
 195   
 196          i_assert(!client->common.authenticating);
 197   
 198[+]         if (!client_read(client))
expand/collapse

client_read

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/pop3-login/client.c)expand/collapse
Show more  
 170  bool client_read(struct pop3_client *client)
 171  {
 172[+]         switch (i_stream_read(client->common.input)) {
 173          case -2:
 174                  /* buffer full */
 175                  client_send_line(client, "-ERR Input line too long, aborting");
 176                  client_destroy(client, "Disconnected: Input buffer full");
 177                  return FALSE;
 178          case -1:
 179                  /* disconnected */
 180[+]                 client_destroy(client, "Disconnected");
expand/collapse

client_destroy

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/pop3-login/client.c)expand/collapse
Show more  
 346  void client_destroy(struct pop3_client *client, const char *reason)
 347  {
 348          if (client->destroyed)
 349                  return;
 350          client->destroyed = TRUE;
 351   
 352          if (!client-> && reason != NULL) {
 353                  reason = t_strconcat(reason, " ",
 354                          client_get_extra_disconnect_reason(&client->common),
 355                          NULL);
 356          }
 357          if (reason != NULL)
 358                  client_syslog(&client->common, reason);
 359   
 360          client_unlink(&client->common);
 361   
 362          if (client->common.input != NULL)
 363                  i_stream_close(client->common.input);
 364          if (client->output != NULL)
 365                  o_stream_close(client->output);
 366   
 367          if (client->common.master_tag != 0) {
 368                  i_assert(client->common.auth_request == NULL);
 369                  i_assert(client->common.authenticating);
 370                  master_request_abort(&client->common);
 371          } else if (client->common.auth_request != NULL) {
 372                  i_assert(client->common.authenticating);
 373                  sasl_server_auth_client_error(&client->common, NULL);
 374          } else {
 375                  i_assert(!client->common.authenticating);
 376          }
 377   
 378          if (client->io != NULL)
 379                  io_remove(&client->io);
 380          if (client->to_idle_disconnect != NULL)
 381                  timeout_remove(&client->to_idle_disconnect);
 382          if (client->to_authfail_delay != NULL)
 383                  timeout_remove(&client->to_authfail_delay);
 384   
 385          if (client->common.fd != -1) {
 386                  net_disconnect(client->common.fd);
 387                  client->common.fd = -1;
 388          }
 389   
 390          if (client->proxy_password != NULL) {
 391                  safe_memset(client->proxy_password, 0,
 392                              strlen(client->proxy_password));
 393                  i_free(client->proxy_password);
 394                  client->proxy_password = NULL;
 395          }
 396   
 397          i_free(client->proxy_user);
Show more  
Show more  
Show more  
Show more  
Show more  




Change Warning 11782.25849 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: