summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-12-15 21:47:11 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-12-15 21:47:11 +0000
commit73dd88d91ebc8b19f0a07ecacccac5d687bf2a5f (patch)
tree00e1b46bbb03feba9a359eeca11bf80fd5f24e68 /sbin
parent709543e164805892817980194ad8b23c556a7c60 (diff)
Fix leak of REQUEST string.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/iked/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/iked/parse.y b/sbin/iked/parse.y
index c42775a31ea..62e7b956659 100644
--- a/sbin/iked/parse.y
+++ b/sbin/iked/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.120 2020/12/13 19:46:17 tobhe Exp $ */
+/* $OpenBSD: parse.y,v 1.121 2020/12/15 21:47:10 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -622,6 +622,7 @@ cfg : CONFIG STRING host_spec {
free($3);
YYERROR;
}
+ free($2);
$$ = $3;
$$->type = xf->id;
$$->action = IKEV2_CP_REQUEST; /* XXX */