summaryrefslogtreecommitdiff
path: root/sbin/iked/ikev2.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2014-03-12 14:28:10 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2014-03-12 14:28:10 +0000
commit8809431888d8fb892a7ba66f9d0e24cc63a8eeaa (patch)
tree00e03f0ff574e039dec43b70d2745a730f0d3e5d /sbin/iked/ikev2.c
parentf1c7f5ee3e5b3d3a17d72cc931ce6c32e3df8c7e (diff)
don't leak an ibuf for each expired SA; ok mikeb@
Diffstat (limited to 'sbin/iked/ikev2.c')
-rw-r--r--sbin/iked/ikev2.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sbin/iked/ikev2.c b/sbin/iked/ikev2.c
index f3fe1975f82..2d6df4d1e14 100644
--- a/sbin/iked/ikev2.c
+++ b/sbin/iked/ikev2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ikev2.c,v 1.98 2014/03/12 11:57:54 markus Exp $ */
+/* $OpenBSD: ikev2.c,v 1.99 2014/03/12 14:28:09 markus Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -4395,11 +4395,6 @@ ikev2_drop_sa(struct iked *env, struct iked_spi *drop)
return;
}
- if ((buf = ibuf_static()) == NULL)
- goto done;
- if ((del = ibuf_advance(buf, sizeof(*del))) == NULL)
- goto done;
-
if (csa->csa_allocated)
spi32 = htobe32(csa->csa_spi.spi);
else