diff options
Diffstat (limited to 'sys/netinet6/ip6_output.c')
-rw-r--r-- | sys/netinet6/ip6_output.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 3072851..afc5f60 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -2417,6 +2417,9 @@ ip6_clearpktopts(pktopt, optname) { int needfree; + if (pktopt == NULL) + return; + needfree = pktopt->needfree; if (optname == -1 || optname == IPV6_PKTINFO) { |