]> git.ipfire.org Git - thirdparty/hostap.git/commit
OpenSSL: Clear default_passwd_cb more thoroughly
authorJouni Malinen <j@w1.fi>
Mon, 17 Jul 2017 09:06:17 +0000 (12:06 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 17 Jul 2017 09:06:17 +0000 (12:06 +0300)
commit89971d8b1e328a2f79699c953625d1671fd40384
tree88d4660a3a5ad622ac73d2c011486ee1a96ff4dd
parentf665c93e1d28fbab3d9127a8c3985cc32940824f
OpenSSL: Clear default_passwd_cb more thoroughly

Previously, the pointer to strdup passwd was left in OpenSSL library
default_passwd_cb_userdata and even the default_passwd_cb was left set
on an error path. To avoid unexpected behavior if something were to
manage to use there pointers, clear them explicitly once done with
loading of the private key.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/crypto/tls_openssl.c