ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-7.2/src/s_auth.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/s_auth.c (file contents):
Revision 999 by michael, Sun Aug 23 12:43:17 2009 UTC vs.
Revision 1000 by michael, Mon Aug 24 13:37:39 2009 UTC

# Line 371 | Line 371 | start_auth(va_list args)
371    assert(client != NULL);
372  
373    auth = make_auth_request(client);
374 +  dlinkAdd(auth, &auth->node, &auth_doing_list);
375  
376    sendheader(client, REPORT_DO_DNS);
377  
# Line 382 | Line 383 | start_auth(va_list args)
383      start_auth_query(auth);
384    }
385  
385  dlinkAdd(auth, &auth->node, &auth_doing_list);
386
386    gethost_byaddr(auth_dns_callback, auth, &client->localClient->ip);
387  
388    return NULL;
# Line 405 | Line 404 | timeout_auth_queries_event(void *notused
404      if (auth->timeout > CurrentTime)
405        continue;
406  
408    fd_close(&auth->fd);
409
407      if (IsDoingAuth(auth))
408      {  
409        ++ServerStats.is_abad;
410 +      fd_close(&auth->fd);
411        ClearAuth(auth);
412        sendheader(auth->client, REPORT_FAIL_ID);
413      }
# Line 599 | Line 597 | delete_auth(struct AuthRequest *auth)
597    if (IsDNSPending(auth))
598      delete_resolver_queries(auth);
599  
600 <  fd_close(&auth->fd);
600 >  if (IsDoingAuth(auth))
601 >    fd_close(&auth->fd);
602 >
603    dlinkDelete(&auth->node, &auth_doing_list);
604    BlockHeapFree(auth_heap, auth);
605   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines