artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e2a2bd
)
freezero() instead of free(), because the object may contain a password
author
deraadt
<deraadt@openbsd.org>
Sat, 18 Sep 2021 16:45:07 +0000
(16:45 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 18 Sep 2021 16:45:07 +0000
(16:45 +0000)
ok tobhe
sbin/iked/config.c
patch
|
blob
|
history
diff --git
a/sbin/iked/config.c
b/sbin/iked/config.c
index
029ee2b
..
87047a1
100644
(file)
--- a/
sbin/iked/config.c
+++ b/
sbin/iked/config.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: config.c,v 1.8
0 2021/09/01 15:30:06 tobhe Exp $
*/
+/* $OpenBSD: config.c,v 1.8
1 2021/09/18 16:45:07 deraadt Exp $
*/
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@
-455,7
+455,7
@@
config_new_user(struct iked *env, struct iked_user *new)
memcpy(old->usr_pass, new->usr_pass, IKED_PASSWORD_SIZE);
log_debug("%s: updating user %s", __func__, usr->usr_name);
- free
(
usr);
+ free
zero(usr, sizeof *
usr);
return (old);
}