diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2010-03-23 22:34:50 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2010-03-23 22:34:50 +0000 |
commit | 7c2eead6dc0cb5616ab5cdcd988c0d3a890f06fc (patch) | |
tree | 3192fa1396601bfd8232ac68e8c9060cc0018b3f /sys | |
parent | 30b2b7b5f709f5e16a45a4c868ed5cf2c7652770 (diff) |
Fix a crash in pfsync when running IPSEC.
Found out the hard way by Laurent ``bucky'' Lavaud and myself.
Input by claudio@, ok dlg@
Diffstat (limited to 'sys')
-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 de1eddf165e..e3329f77d79 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.143 2010/03/01 12:29:35 dlg Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.144 2010/03/23 22:34:49 pyr Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1219,7 +1219,7 @@ pfsync_in_tdb(struct pfsync_pkt *pkt, caddr_t buf, int len, int count) s = splsoftnet(); for (i = 0; i < count; i++) tp = (struct pfsync_tdb *)(buf + len * i); - pfsync_update_net_tdb(&tp[i]); + pfsync_update_net_tdb(tp); splx(s); #endif |