From 9c41e27b31517f0c2ebdbd49332884444f2b3592 Mon Sep 17 00:00:00 2001 From: glebius Date: Sat, 22 Sep 2012 10:04:48 +0000 Subject: In pfr_insert_kentry() return ENOMEM if memory allocation failed. --- sys/netpfil/pf/pf_table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.1