summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-11 21:23:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-07-11 21:23:30 +0000
commit364af8a6959831d6abf08c4be270fc8fa36a3558 (patch)
tree209a46d0ba7282ded089f4ffe251892d7784dc03 /sbin/isakmpd
parent442fb3a9589843c4a2efce416f37fb12e8dddb5b (diff)
malloc() failure tests; rimshot@pandora.be
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r--sbin/isakmpd/pf_key_v2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c
index 4f29517811a..efe68c8e95c 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.112 2002/07/05 11:08:13 ho Exp $ */
+/* $OpenBSD: pf_key_v2.c,v 1.113 2002/07/11 21:23:28 deraadt Exp $ */
/* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */
/*
@@ -163,7 +163,7 @@ pf_key_v2_register_sa_seq (u_int8_t *spi, size_t sz, u_int8_t proto,
if (!node->spi)
goto cleanup;
node->dst = malloc (sysdep_sa_len (dst));
- if (!node->spi)
+ if (!node->dst)
goto cleanup;
memcpy (node->dst, dst, sysdep_sa_len (dst));
node->dstlen = sysdep_sa_len (dst);