From 269a21860d3c611c8b2db03765a702212ecab53c Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 25 Jul 2010 23:36:31 +0000 Subject: [PATCH] Add missing braces so a loop will function as intended. ok dlg@ --- sys/net/if_pfsync.c | 5 +++-- 1 file 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 -- 2.20.1