Text   |  XML   |  ReML   |   Visible Warnings:

Free Null Pointer  at client.c:597

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/imap-login/imap-proxy.c)expand/collapse
Show more  
 71  static void proxy_failed(struct imap_client *client, bool send_tagline)
 72  {
 73          if (send_tagline)
 74                  client_send_tagline(client, PROXY_FAILURE_MSG);
 75   
 76          (&client->proxy);
 77          proxy_free_password(client);
 78          i_free_and_null(client->proxy_user);
 79          i_free_and_null(client->proxy_master_user);
 80   
 81          /* call this last - it may destroy the client */
 82[+]         client_auth_failed(client, TRUE);
expand/collapse

client_auth_failed

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

client_input

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap-login/client.c)expand/collapse
Show more  
 406  void client_input(struct imap_client *client)
 407  {
 408[+]         if (!client_read(client))
expand/collapse

client_read

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap-login/client.c)expand/collapse
Show more  
 384  bool client_read(struct imap_client *client)
 385  {
 386[+]         switch (i_stream_read(client->common.input)) {
 387          case -2:
 388                  /* buffer full */
 389                  client_send_line(client, "* BYE Input buffer full, aborting");
 390                  client_destroy(client, "Disconnected: Input buffer full");
 391                  return FALSE;
 392          case -1:
 393                  /* disconnected */
 394[+]                 client_destroy(client, "Disconnected");
expand/collapse

client_destroy

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/imap-login/client.c)expand/collapse
Show more  
 543  void client_destroy(struct imap_client *client, const char *reason)
 544  {
 545          if (client->destroyed)
 546                  return;
 547          client->destroyed = TRUE;
 548   
 549          if (!client-> && reason != NULL) {
 550                  reason = t_strconcat(reason, " ",
 551                          client_get_extra_disconnect_reason(&client->common),
 552                          NULL);
 553          }
 554          if (reason != NULL)
 555                  client_syslog(&client->common, reason);
 556   
 557          client_unlink(&client->common);
 558   
 559          if (client->common.input != NULL)
 560                  i_stream_close(client->common.input);
 561          if (client->output != NULL)
 562                  o_stream_close(client->output);
 563   
 564          if (client->common.master_tag != 0) {
 565                  i_assert(client->common.auth_request == NULL);
 566                  i_assert(client->common.authenticating);
 567                  master_request_abort(&client->common);
 568          } else if (client->common.auth_request != NULL) {
 569                  i_assert(client->common.authenticating);
 570                  sasl_server_auth_client_error(&client->common, NULL);
 571          } else {
 572                  i_assert(!client->common.authenticating);
 573          }
 574   
 575          if (client->io != NULL)
 576                  io_remove(&client->io);
 577          if (client->to_idle_disconnect != NULL)
 578                  timeout_remove(&client->to_idle_disconnect);
 579          if (client->to_auth_waiting != NULL)
 580                  timeout_remove(&client->to_auth_waiting);
 581          if (client->to_authfail_delay != NULL)
 582                  timeout_remove(&client->to_authfail_delay);
 583   
 584          if (client->common.fd != -1) {
 585                  net_disconnect(client->common.fd);
 586                  client->common.fd = -1;
 587          }
 588   
 589          if (client->proxy_password != NULL) {
 590                  safe_memset(client->proxy_password, 0,
 591                              strlen(client->proxy_password));
 592                  i_free(client->proxy_password);
 593                  client->proxy_password = NULL;
 594          }
 595   
 596          i_free_and_null(client->proxy_user);
 597          i_free_and_null(client->proxy_master_user);
Show more  
Show more  
Show more  
Show more  
Show more  




Change Warning 11776.25959 : Free Null Pointer

Priority:
State:
Finding:
Owner:
Note: