Add missing
break; so when comparing AF_INET6 addresses, scope and ports we do not run into the default case and return 'no match' instead of 'match'.
This commit is contained in:
parent
f858bb2ebb
commit
4662f48b4e
@ -4007,6 +4007,7 @@ key_sockaddrcmp(
|
||||
satosin6(sa1)->sin6_port != satosin6(sa2)->sin6_port) {
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
if (bcmp(sa1, sa2, sa1->sa_len) != 0)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user