Skip to content

Commit 5dc883b

Browse files
committed
ND: Don't reject messages if we are just removing options
1 parent 7c50b51 commit 5dc883b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/ipv6nd.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, const struct sockaddr_in6 *from,
11341134
break;
11351135
}
11361136

1137-
if (!dho_policy_allowed(pg, ndo.nd_opt_type)) {
1137+
if (dho_policy_has(&pg->dhop_reject, ndo.nd_opt_type)) {
11381138
const char *soption = dhcp_option_string(ctx->nd_opts,
11391139
ctx->nd_opts_len, ndo.nd_opt_type);
11401140
logmessage(loglevel,

0 commit comments

Comments
 (0)