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:
bz 2007-05-29 22:18:44 +00:00
parent f858bb2ebb
commit 4662f48b4e

View File

@ -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;