Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IP blocking: handle enabled flag, fixes #3339
  • Loading branch information
perexg committed Nov 24, 2015
1 parent 93cd28c commit e6431ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/access.c
Expand Up @@ -337,7 +337,7 @@ access_ip_blocked(struct sockaddr *src)
ipblock_entry_t *ib;

TAILQ_FOREACH(ib, &ipblock_entries, ib_link)
if (netmask_verify(&ib->ib_ipmasks, src))
if (ib->ib_enabled && netmask_verify(&ib->ib_ipmasks, src))
return 1;
return 0;
}
Expand Down

0 comments on commit e6431ae

Please sign in to comment.