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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
} |
} |