Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/netinet/ip_input.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.279 retrieving revision 1.280 diff -u -p -r1.279 -r1.280 --- src/sys/netinet/ip_input.c 2009/03/18 17:06:52 1.279 +++ src/sys/netinet/ip_input.c 2009/04/15 20:44:25 1.280 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.279 2009/03/18 17:06:52 cegger Exp $ */ +/* $NetBSD: ip_input.c,v 1.280 2009/04/15 20:44:25 elad Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -91,7 +91,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.279 2009/03/18 17:06:52 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.280 2009/04/15 20:44:25 elad Exp $"); #include "opt_inet.h" #include "opt_compat_netbsd.h" @@ -2136,9 +2136,10 @@ sysctl_net_inet_ip_forwsrcrt(SYSCTLFN_AR if (error || newp == NULL) return (error); - if (kauth_authorize_network(l->l_cred, KAUTH_NETWORK_FORWSRCRT, - 0, NULL, NULL, NULL)) - return (EPERM); + error = kauth_authorize_network(l->l_cred, KAUTH_NETWORK_FORWSRCRT, + 0, NULL, NULL, NULL); + if (error) + return (error); ip_forwsrcrt = tmp;