artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36cafe1
)
Add missing braces so a loop will function as intended.
author
jsg
<jsg@openbsd.org>
Sun, 25 Jul 2010 23:36:31 +0000
(23:36 +0000)
committer
jsg
<jsg@openbsd.org>
Sun, 25 Jul 2010 23:36:31 +0000
(23:36 +0000)
ok dlg@
sys/net/if_pfsync.c
patch
|
blob
|
history
diff --git
a/sys/net/if_pfsync.c
b/sys/net/if_pfsync.c
index
535205d
..
04a1840
100644
(file)
--- a/
sys/net/if_pfsync.c
+++ b/
sys/net/if_pfsync.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if_pfsync.c,v 1.15
2 2010/07/09 16:58:06 reyk Exp $
*/
+/* $OpenBSD: if_pfsync.c,v 1.15
3 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