PERFORCE change 142968 for review

Paolo Pisati piso at FreeBSD.org
Thu Jun 5 14:33:54 UTC 2008


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

Change 142968 by piso at piso_ferret on 2008/06/05 14:33:29

	In case megapullup fails, return ENOMEM.

Affected files ...

.. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#33 edit

Differences ...

==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias_mod.c#33 (text+ko) ====

@@ -232,14 +232,14 @@
 	int error;
 
 	LIBALIAS_RLOCK();
-	error = ENOENT;
+	error = 0;
 	LIST_FOREACH(p, &handler_chain, entries) {
 		if ((p->dir & dir) && (p->proto & proto))
 			if (p->fingerprint(la, ad) == 0) {
 #ifdef _KERNEL
 				*pkt = m_megapullup(*pkt, (*pkt)->m_pkthdr.len);
 				if (*pkt == NULL) {
-					error = EPERM;
+					error = ENOMEM;
 					break;
 				}
 				pip = mtod(*pkt, struct ip *);


More information about the p4-projects mailing list