diff options
author | 2013-08-07 05:39:05 +0000 | |
---|---|---|
committer | 2013-08-07 05:39:05 +0000 | |
commit | ddb7828bc6708358e6c08caaf09e3524e8cab7b4 (patch) | |
tree | e732b8f8544c35045bd786870c09ec3ab377baa1 | |
parent | mention support for binary integer constants (diff) | |
download | wireguard-openbsd-ddb7828bc6708358e6c08caaf09e3524e8cab7b4.tar.xz wireguard-openbsd-ddb7828bc6708358e6c08caaf09e3524e8cab7b4.zip |
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; } |