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)
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"