svn commit: r240810 - head/sys/netpfil/pf

Gleb Smirnoff glebius at FreeBSD.org
Sat Sep 22 10:04:49 UTC 2012


Author: glebius
Date: Sat Sep 22 10:04:48 2012
New Revision: 240810
URL: http://svn.freebsd.org/changeset/base/240810

Log:
  In pfr_insert_kentry() return ENOMEM if memory allocation failed.

Modified:
  head/sys/netpfil/pf/pf_table.c

Modified: head/sys/netpfil/pf/pf_table.c
==============================================================================
--- head/sys/netpfil/pf/pf_table.c	Sat Sep 22 10:02:44 2012	(r240809)
+++ head/sys/netpfil/pf/pf_table.c	Sat Sep 22 10:04:48 2012	(r240810)
@@ -834,7 +834,7 @@ pfr_insert_kentry(struct pfr_ktable *kt,
 		return (0);
 	p = pfr_create_kentry(ad);
 	if (p == NULL)
-		return (EINVAL);
+		return (ENOMEM);
 
 	rv = pfr_route_kentry(kt, p);
 	if (rv)


More information about the svn-src-all mailing list