summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-09-22 10:04:48 +0000
committerglebius <glebius@FreeBSD.org>2012-09-22 10:04:48 +0000
commit9c41e27b31517f0c2ebdbd49332884444f2b3592 (patch)
tree9268935cddaa121b240a0b144ba5820d737a59b0
parent0adf1aff0e2c1c5e8c619adb823c7ab665c3824c (diff)
downloadFreeBSD-src-9c41e27b31517f0c2ebdbd49332884444f2b3592.zip
FreeBSD-src-9c41e27b31517f0c2ebdbd49332884444f2b3592.tar.gz
In pfr_insert_kentry() return ENOMEM if memory allocation failed.
-rw-r--r--sys/netpfil/pf/pf_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netpfil/pf/pf_table.c b/sys/netpfil/pf/pf_table.c
index 618bc44..c194095 100644
--- a/sys/netpfil/pf/pf_table.c
+++ b/sys/netpfil/pf/pf_table.c
@@ -834,7 +834,7 @@ pfr_insert_kentry(struct pfr_ktable *kt, struct pfr_addr *ad, long tzero)
return (0);
p = pfr_create_kentry(ad);
if (p == NULL)
- return (EINVAL);
+ return (ENOMEM);
rv = pfr_route_kentry(kt, p);
if (rv)
OpenPOWER on IntegriCloud