/[svn]/ircd-hybrid/branches/8.2.x/src/auth.c
ViewVC logotype

Diff of /ircd-hybrid/branches/8.2.x/src/auth.c

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

revision 6476 by michael, Sat Aug 1 18:06:37 2015 UTC revision 6477 by michael, Thu Sep 3 14:02:36 2015 UTC
# Line 79  static const char *const HeaderMessages[ Line 79  static const char *const HeaderMessages[
79    
80  #define sendheader(c, i) sendto_one_notice((c), &me, "%s", HeaderMessages[(i)])  #define sendheader(c, i) sendto_one_notice((c), &me, "%s", HeaderMessages[(i)])
81    
82  static dlink_list auth_pending_list;  static dlink_list auth_list;
83  static void read_auth_reply(fde_t *, void *);  static void read_auth_reply(fde_t *, void *);
84  static void auth_connect_callback(fde_t *, int, void *);  static void auth_connect_callback(fde_t *, int, void *);
85    
# Line 115  release_auth_client(struct AuthRequest * Line 115  release_auth_client(struct AuthRequest *
115    
116    if (IsInAuth(auth))    if (IsInAuth(auth))
117    {    {
118      dlinkDelete(&auth->node, &auth_pending_list);      dlinkDelete(&auth->node, &auth_list);
119      ClearInAuth(auth);      ClearInAuth(auth);
120    }    }
121    
# Line 267  start_auth(struct Client *client_p) Line 267  start_auth(struct Client *client_p)
267    struct AuthRequest *const auth = make_auth_request(client_p);    struct AuthRequest *const auth = make_auth_request(client_p);
268    
269    SetInAuth(auth);    SetInAuth(auth);
270    dlinkAddTail(auth, &auth->node, &auth_pending_list);    dlinkAddTail(auth, &auth->node, &auth_list);
271    
272    sendheader(client_p, REPORT_DO_DNS);    sendheader(client_p, REPORT_DO_DNS);
273    
# Line 291  timeout_auth_queries_event(void *notused Line 291  timeout_auth_queries_event(void *notused
291  {  {
292    dlink_node *node = NULL, *node_next = NULL;    dlink_node *node = NULL, *node_next = NULL;
293    
294    DLINK_FOREACH_SAFE(node, node_next, auth_pending_list.head)    DLINK_FOREACH_SAFE(node, node_next, auth_list.head)
295    {    {
296      struct AuthRequest *auth = node->data;      struct AuthRequest *auth = node->data;
297    
# Line 518  delete_auth(struct AuthRequest *auth) Line 518  delete_auth(struct AuthRequest *auth)
518    
519    if (IsInAuth(auth))    if (IsInAuth(auth))
520    {    {
521      dlinkDelete(&auth->node, &auth_pending_list);      dlinkDelete(&auth->node, &auth_list);
522      ClearInAuth(auth);      ClearInAuth(auth);
523    }    }
524  }  }

Legend:
Removed from v.6476  
changed lines
  Added in v.6477

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