Text   |  XML   |  ReML   |   Visible Warnings:

Null Pointer Dereference  at auth-worker-server.c:95

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

auth_worker_call

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/auth-worker-server.c)expand/collapse
Show more  
 303  void auth_worker_call(struct auth_request *auth_request,
 304                        struct auth_stream_reply *data,
 305                        auth_worker_callback_t *callback)
 306  {
 307          struct auth_worker_connection *conn;
 308          struct auth_worker_request *request;
 309   
 310          request = p_new(auth_request->pool, struct auth_worker_request, 1);
 311          request->created = ioloop_time;
 312          request->data_str = p_strdup(auth_request->pool,
 313[+]                                      auth_stream_reply_export(data));
 314          request->auth_request = auth_request;
 315          request->callback = callback;
 316          auth_request_ref(auth_request);
 317   
 318          if (aqueue_count(worker_request_queue) > 0) {
 319                  /* requests are already being queued, no chance of 
 320                     finding/creating a worker */
 321                  conn = NULL;
 322          } else {
 323[+]                 conn = auth_worker_find_free();
 324                  if (conn == NULL) {
 325                          /* no free connections, create a new one */
 326                          conn = auth_worker_create();
 327                  }
 328          }
 329          if (conn != NULL)
 330[+]                 auth_worker_request_send(conn, request);
expand/collapse

auth_worker_request_send

(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/auth/auth-worker-server.c)expand/collapse
Show more  
 75  static void auth_worker_request_send(struct auth_worker_connection *conn,
 76                                       struct auth_worker_request *request)
 77  {
 78          struct const_iovec iov[3];
 79   
 80          if (ioloop_time - request->created > AUTH_WORKER_DELAY_WARN_SECS &&
 81              ioloop_time - auth_worker_last_warn >
 82              AUTH_WORKER_DELAY_WARN_MIN_INTERVAL_SECS) {
 83                  auth_worker_last_warn = ioloop_time;
 84                  i_warning("auth workers: Auth request was queued for %d "
 85                            "seconds, %d left in queue",
 86                            (int)(ioloop_time - request->created),
 87                            aqueue_count(worker_request_queue));
 88          }
 89   
 90          request->id = ++conn->id_counter;
 91   
 92          iov[0].iov_base = t_strdup_printf("%d\t", request->id);
 93          iov[0].iov_len = strlen(iov[0].iov_base);
 94          iov[1].iov_base = request->data_str;
 95          iov[1].iov_len = strlen(request->data_str);
Show more  
Show more  




Change Warning 7574.25474 : Null Pointer Dereference

Priority:
State:
Finding:
Owner:
Note: