Date: Thu, 5 Jun 2008 14:33:53 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 142968 for review Message-ID: <200806051433.m55EXrtN025590@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=142968 Change 142968 by piso@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 *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200806051433.m55EXrtN025590>