diff options
author | 2010-07-25 23:36:31 +0000 | |
---|---|---|
committer | 2010-07-25 23:36:31 +0000 | |
commit | 269a21860d3c611c8b2db03765a702212ecab53c (patch) | |
tree | 43edb9ac7da91c38cda2e14442cbd01607151d82 | |
parent | basic regress tests (based on test-19.c) for _Bool and _Complex support (diff) | |
download | wireguard-openbsd-269a21860d3c611c8b2db03765a702212ecab53c.tar.xz wireguard-openbsd-269a21860d3c611c8b2db03765a702212ecab53c.zip |
Add missing braces so a loop will function as intended.
ok dlg@
-rw-r--r-- | sys/net/if_pfsync.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 535205daaf9..04a1840ee7e 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.152 2010/07/09 16:58:06 reyk Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.153 2010/07/25 23:36:31 jsg Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1215,9 +1215,10 @@ pfsync_in_tdb(struct pfsync_pkt *pkt, caddr_t buf, int len, int count) int s; s = splsoftnet(); - for (i = 0; i < count; i++) + for (i = 0; i < count; i++) { tp = (struct pfsync_tdb *)(buf + len * i); pfsync_update_net_tdb(tp); + } splx(s); #endif |