diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2005-02-25 03:02:42 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2005-02-25 03:02:42 +0000 |
commit | 8dcf2d1387109e43cabbf8b12a6bf3dd3ed2613d (patch) | |
tree | ce34c65d9c8456ff26a78393098bf432fd756542 /sbin | |
parent | a6855348bad768f13ff3e3aeeac33cf0d2d7bd63 (diff) |
Fix an obviously incorrect call to memset. '0' and 0 are not the same
thing. Input and OK from markus@, ho@, niklas@, deraadt@, hshoexer@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/isakmpd/pf_key_v2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c index 66ffeabdb4a..5fc702e6505 100644 --- a/sbin/isakmpd/pf_key_v2.c +++ b/sbin/isakmpd/pf_key_v2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_key_v2.c,v 1.151 2004/12/27 11:02:03 hshoexer Exp $ */ +/* $OpenBSD: pf_key_v2.c,v 1.152 2005/02/25 03:02:41 cloder Exp $ */ /* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */ /* @@ -157,10 +157,9 @@ pf_key_v2_register_sa_seq(u_int8_t *spi, size_t sz, u_int8_t proto, { struct pf_key_v2_sa_seq *node = 0; - node = malloc(sizeof *node); + node = calloc(1, sizeof *node); if (!node) goto cleanup; - memset(node, '0', sizeof *node); node->spi = malloc(sz); if (!node->spi) goto cleanup; |