pktopt may be null.

Approved by:	re (rwatson)
This commit is contained in:
Hajimu UMEMOTO 2003-11-24 01:53:36 +00:00
parent 2f234e2e99
commit 289b28bd99
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=122970

View File

@ -2417,6 +2417,9 @@ ip6_clearpktopts(pktopt, optname)
{
int needfree;
if (pktopt == NULL)
return;
needfree = pktopt->needfree;
if (optname == -1 || optname == IPV6_PKTINFO) {