diff options
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; |