0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-06 00:35:34 +02:00

blacklist: compile fixes

This commit is contained in:
Elizabeth Myers 2016-03-29 23:29:58 -05:00
parent 7246347058
commit ccb5c37db9

View file

@ -262,7 +262,7 @@ blacklist_dns_callback(const char *result, bool status, query_type type, void *d
{ {
/* Done here */ /* Done here */
notice_client(auth->cid, "*** IP not found in DNS blacklist%s", notice_client(auth->cid, "*** IP not found in DNS blacklist%s",
rb_dlink_list_length(blacklist_list) > 1 : "s" : ""); rb_dlink_list_length(&blacklist_list) > 1 : "s" : "");
rb_free(bluser); rb_free(bluser);
auth->data[PROVIDER_BLACKLIST] = NULL; auth->data[PROVIDER_BLACKLIST] = NULL;
provider_done(auth, PROVIDER_BLACKLIST); provider_done(auth, PROVIDER_BLACKLIST);
@ -320,7 +320,7 @@ lookup_all_blacklists(struct auth_client *auth)
rb_dlink_node *ptr; rb_dlink_node *ptr;
notice_client(auth->cid, "*** Checking your IP against DNS blacklist%s", notice_client(auth->cid, "*** Checking your IP against DNS blacklist%s",
rb_dlink_list_length(blacklist_list) > 1 ? "s" : ""); rb_dlink_list_length(&blacklist_list) > 1 ? "s" : "");
RB_DLINK_FOREACH(ptr, blacklist_list.head) RB_DLINK_FOREACH(ptr, blacklist_list.head)
{ {
@ -409,7 +409,7 @@ blacklists_cancel(struct auth_client *auth)
if(bluser == NULL) if(bluser == NULL)
return; return;
if(rb_dlink_list_length(bluser) > 0) if(rb_dlink_list_length(&bluser->queries))
{ {
notice_client(auth->cid, "*** Aborting DNS blacklist queries"); notice_client(auth->cid, "*** Aborting DNS blacklist queries");