summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/ip6_output.c
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-11-24 01:53:36 +0000
committerume <ume@FreeBSD.org>2003-11-24 01:53:36 +0000
commit939be2da2f8bc8c28d0f98fff3a2ba8ab4b9f46a (patch)
tree9a8a71ef2ba17817d4d8d52c3bcbb102208c27cf /sys/netinet6/ip6_output.c
parentcbf47a3186f003765be8d53cbb285bb5492312bb (diff)
downloadFreeBSD-src-939be2da2f8bc8c28d0f98fff3a2ba8ab4b9f46a.zip
FreeBSD-src-939be2da2f8bc8c28d0f98fff3a2ba8ab4b9f46a.tar.gz
pktopt may be null.
Approved by: re (rwatson)
Diffstat (limited to 'sys/netinet6/ip6_output.c')
-rw-r--r--sys/netinet6/ip6_output.c3
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) {
OpenPOWER on IntegriCloud