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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user