Date: Sat, 22 Sep 2012 10:04:49 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r240810 - head/sys/netpfil/pf Message-ID: <201209221004.q8MA4nVB043079@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209221004.q8MA4nVB043079>