diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2009-02-17 20:59:30 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2009-02-17 20:59:30 +0000 |
commit | 6dcc49426d2991e7f02217bd09066d4fe55fa42b (patch) | |
tree | 19aa4b0a2e979de3a260da5da4ee335154638222 | |
parent | a8499f2fd59199c205121a3d4a958ee27b8968dd (diff) |
fix uninitialized variable.
found by LLVM/Clang Static Analyzer.
ok dlg@
-rw-r--r-- | sys/net/if_pfsync.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 3cba30e64bd..9691708938a 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.103 2009/02/16 00:31:25 dlg Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.104 2009/02/17 20:59:29 chl Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1117,6 +1117,8 @@ pfsync_in_del(struct pfsync_pkt *pkt, struct mbuf *m, int offset, int count) s = splsoftnet(); for (i = 0; i < count; i++) { + sp = &sa[i]; + bcopy(sp->id, &id_key.id, sizeof(id_key.id)); id_key.creatorid = sp->creatorid; |