summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Berger <cedric@cvs.openbsd.org>2003-02-04 12:10:03 +0000
committerCedric Berger <cedric@cvs.openbsd.org>2003-02-04 12:10:03 +0000
commitbc73150fc6ad157e62abbcc916e3128fa62f5254 (patch)
tree186a349093d30c364ed5074ef73eb8d64c8b6ff2
parent3adbc9f49d0beec7da0c2455cb2ded8c8f778e81 (diff)
Cleanup buffer before reuse. Consistency + defensive programming.
-rw-r--r--sbin/pfctl/pfctl_table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_table.c b/sbin/pfctl/pfctl_table.c
index 9daade3e392..41d0a4008b7 100644
--- a/sbin/pfctl/pfctl_table.c
+++ b/sbin/pfctl/pfctl_table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_table.c,v 1.31 2003/02/03 14:51:36 cedric Exp $ */
+/* $OpenBSD: pfctl_table.c,v 1.32 2003/02/04 12:10:02 cedric Exp $ */
/*
* Copyright (c) 2002 Cedric Berger
@@ -618,6 +618,7 @@ pfctl_define_table(char *name, int flags, int addrs, int noaction)
exit(1);
}
}
+ bzero(buffer.addrs, size * sizeof(buffer.addrs[0]));
size = 0;
}