summaryrefslogtreecommitdiff
path: root/sbin/iked/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/iked/parse.y')
-rw-r--r--sbin/iked/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/iked/parse.y b/sbin/iked/parse.y
index fc47c89c3aa..0dbdb5a5e85 100644
--- a/sbin/iked/parse.y
+++ b/sbin/iked/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.132 2021/09/18 16:45:52 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.133 2021/10/12 09:27:21 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -551,7 +551,7 @@ user : USER STRING STRING {
if (create_user($2, $3) == -1)
YYERROR;
free($2);
- free($3);
+ freezero($3, strlen($3));
}
;
@@ -3078,6 +3078,8 @@ create_user(const char *user, const char *pass)
config_setuser(env, &usr, PROC_IKEV2);
rules++;
+
+ explicit_bzero(&usr, sizeof usr);
return (0);
}