/[svn]/ircd-hybrid-7.2/src/s_auth.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/src/s_auth.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.999  
changed lines
  Added in v.1000

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28