diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2013-08-07 05:39:06 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2013-08-07 05:39:06 +0000 |
commit | 99d1b89c56502e502f8c440c799f496c26f2d05e (patch) | |
tree | 58c89a0323520d70713fec1e8f5d3688e8c12938 | |
parent | a56c6b0e517e42cae27e0432e830844e25d8db0c (diff) |
states learnt via pfsync from a peer with the same ruleset checksum were
not getting assigned to rules like they should cos pfsync_in_upd() wasnt
passing the PFSYNC_SI_CKSUM flag along to pfsync_state_import.
found and fixed by pedro
-rw-r--r-- | sys/net/if_pfsync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index e9c5e62ead9..2c965023fd4 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.200 2013/06/20 12:03:40 mpi Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.201 2013/08/07 05:39:05 dlg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -916,7 +916,7 @@ pfsync_in_upd(caddr_t buf, int len, int count, int flags) st = pf_find_state_byid(&id_key); if (st == NULL) { /* insert the update */ - if (pfsync_state_import(sp, 0)) + if (pfsync_state_import(sp, flags)) pfsyncstats.pfsyncs_badstate++; continue; } |