Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2007 22:08:05 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 128843 for review
Message-ID:  <200711082208.lA8M85kY001174@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128843

Change 128843 by kmacy@kmacy:storage:toestack on 2007/11/08 22:07:27

	allow ip_srcroute to take a null mbuf so that syncache_add can take a null mbuf

Affected files ...

.. //depot/projects/toestack/sys/netinet/ip_options.c#4 edit

Differences ...

==== //depot/projects/toestack/sys/netinet/ip_options.c#4 (text+ko) ====

@@ -404,6 +404,9 @@
 	struct mbuf *m;
 	struct ipopt_tag *opts;
 
+	if (m0 == NULL)
+		return (NULL);
+
 	opts = (struct ipopt_tag *)m_tag_find(m0, PACKET_TAG_IPOPTIONS, NULL);
 	if (opts == NULL)
 		return (NULL);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711082208.lA8M85kY001174>