diff options
author | glebius <glebius@FreeBSD.org> | 2013-05-11 17:57:52 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-05-11 17:57:52 +0000 |
commit | 375ef2e633e6adac02fdab16d77ad89727638a65 (patch) | |
tree | 7c8ee312dd15b85bc8ee670811376da2e5f258af /sys/netpfil/pf | |
parent | 94f06f64c9eb6004f1ff06649a15632fb2f98da4 (diff) | |
download | FreeBSD-src-375ef2e633e6adac02fdab16d77ad89727638a65.zip FreeBSD-src-375ef2e633e6adac02fdab16d77ad89727638a65.tar.gz |
Invalid creatorid is always EINVAL, not only when we are in verbose mode.
Diffstat (limited to 'sys/netpfil/pf')
-rw-r--r-- | sys/netpfil/pf/if_pfsync.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c index bc11584..5c44757 100644 --- a/sys/netpfil/pf/if_pfsync.c +++ b/sys/netpfil/pf/if_pfsync.c @@ -408,9 +408,10 @@ pfsync_state_import(struct pfsync_state *sp, u_int8_t flags) 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); } |