From owner-svn-src-all@FreeBSD.ORG Sat May 11 17:57:52 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D980D798; Sat, 11 May 2013 17:57:52 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id CB30D1C8; Sat, 11 May 2013 17:57:52 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4BHvqCR095998; Sat, 11 May 2013 17:57:52 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4BHvqKu095997; Sat, 11 May 2013 17:57:52 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201305111757.r4BHvqKu095997@svn.freebsd.org> From: Gleb Smirnoff Date: Sat, 11 May 2013 17:57:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250518 - head/sys/netpfil/pf X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 May 2013 17:57:52 -0000 Author: glebius Date: Sat May 11 17:57:52 2013 New Revision: 250518 URL: http://svnweb.freebsd.org/changeset/base/250518 Log: Invalid creatorid is always EINVAL, not only when we are in verbose mode. Modified: head/sys/netpfil/pf/if_pfsync.c Modified: head/sys/netpfil/pf/if_pfsync.c ============================================================================== --- head/sys/netpfil/pf/if_pfsync.c Sat May 11 16:47:42 2013 (r250517) +++ head/sys/netpfil/pf/if_pfsync.c Sat May 11 17:57:52 2013 (r250518) @@ -408,9 +408,10 @@ pfsync_state_import(struct pfsync_state PF_RULES_RASSERT(); - if (sp->creatorid == 0 && V_pf_status.debug >= PF_DEBUG_MISC) { - printf("%s: invalid creator id: %08x\n", __func__, - ntohl(sp->creatorid)); + if (sp->creatorid == 0) { + if (V_pf_status.debug >= PF_DEBUG_MISC) + printf("%s: invalid creator id: %08x\n", __func__, + ntohl(sp->creatorid)); return (EINVAL); }