PERFORCE change 128843 for review

Kip Macy kmacy at FreeBSD.org
Thu Nov 8 14:08:07 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=128843

Change 128843 by kmacy at 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);


More information about the p4-projects mailing list