summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTobias Heider <tobhe@cvs.openbsd.org>2023-12-20 00:34:14 +0000
committerTobias Heider <tobhe@cvs.openbsd.org>2023-12-20 00:34:14 +0000
commit7fe48eb53bb0ba489f674fc41d4835c19003adfc (patch)
treee01f83146cf2e80cbc6705314719f8cadcab9262 /sbin
parentb628c18072e16a89027c673ac88e25b8ce350d2a (diff)
Don't unset the SA tag set by ipsec_sa_tag in ipsec_sa_iface.
Fixes SA tagging and a possible leak. from markus@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/ipsec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c
index 08a90cee65c..14bc6c45770 100644
--- a/sbin/isakmpd/ipsec.c
+++ b/sbin/isakmpd/ipsec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipsec.c,v 1.153 2023/08/07 04:01:29 dlg Exp $ */
+/* $OpenBSD: ipsec.c,v 1.154 2023/12/20 00:34:13 tobhe Exp $ */
/* $EOM: ipsec.c,v 1.143 2000/12/11 23:57:42 niklas Exp $ */
/*
@@ -393,8 +393,6 @@ ipsec_sa_iface(struct exchange *exchange, struct sa *sa, struct sa *isakmp_sa)
char *section, *value;
const char *errstr = NULL;
- sa->tag = NULL;
-
if (exchange->name == NULL ||
(section = exchange->name) == NULL ||
(value = conf_get_str(section, "Interface")) == NULL)