diff options
author | ume <ume@FreeBSD.org> | 2003-11-24 01:53:36 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-11-24 01:53:36 +0000 |
commit | 939be2da2f8bc8c28d0f98fff3a2ba8ab4b9f46a (patch) | |
tree | 9a8a71ef2ba17817d4d8d52c3bcbb102208c27cf | |
parent | cbf47a3186f003765be8d53cbb285bb5492312bb (diff) | |
download | FreeBSD-src-939be2da2f8bc8c28d0f98fff3a2ba8ab4b9f46a.zip FreeBSD-src-939be2da2f8bc8c28d0f98fff3a2ba8ab4b9f46a.tar.gz |
pktopt may be null.
Approved by: re (rwatson)
-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) { |