Skip to content

Commit

Permalink
Merge pull request #912 from Defensative/defensative
Browse files Browse the repository at this point in the history
Update validate_op.c
  • Loading branch information
ddpbsd authored Aug 10, 2016
2 parents 700b6f7 + 38ec870 commit aefeecf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/shared/validate_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,12 @@ int sacmp(struct sockaddr *sa1, struct sockaddr *sa2, int prefixlength)
div_t ip_div;
char *addr1, *addr2, modbits;

// If we have no prefixlength just return a match
// * This handles the "any" case
if (!prefixlength) {
return _true;
}

switch (sa1->sa_family)
{
case AF_INET:
Expand Down

0 comments on commit aefeecf

Please sign in to comment.