1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 12:59:02 +00:00

Rearrange declarations to put all addrset functions in nbase.h, hide struct addrset internals.

This commit is contained in:
dmiller
2018-11-01 04:35:00 +00:00
parent 27807aadb4
commit 824f9dcb2f
12 changed files with 67 additions and 197 deletions

View File

@@ -581,9 +581,9 @@ int allow_access(const union sockaddr_u *su)
{
/* A host not in the allow set is denied, but only if the --allow or
--allowfile option was given. */
if (o.allow && !addrset_contains(&o.allowset, &su->sockaddr))
if (o.allow && !addrset_contains(o.allowset, &su->sockaddr))
return 0;
if (addrset_contains(&o.denyset, &su->sockaddr))
if (addrset_contains(o.denyset, &su->sockaddr))
return 0;
return 1;