Invalid creatorid is always EINVAL, not only when we are in verbose mode.

This commit is contained in:
Gleb Smirnoff 2013-05-11 17:57:52 +00:00
parent 7a1a8a4243
commit b69d74e834

View File

@ -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);
}