]> git.ipfire.org Git - thirdparty/hostap.git/commit
DPP: Fix uninitialised variable on error path
authorAlasdair Mackintosh <alasdair@google.com>
Wed, 9 Mar 2022 21:24:49 +0000 (13:24 -0800)
committerJouni Malinen <j@w1.fi>
Sat, 12 Mar 2022 08:36:03 +0000 (10:36 +0200)
commitae512c30a1fae7f2c60a088b50d0d355aaf374f1
treec4d59d11554323098d69b08a65c1f3233f3cb6ac
parent3a157fe92ff44278ed9be18dca27ae2961b3fc48
DPP: Fix uninitialised variable on error path

The current code generates a warning when compiled by Clang, because if
we goto 'fail:', password_len can be uninitialised when we pass it in to
bin_clear_free().

Note that the actual usage is safe, because bin_clear_free() ignores
the second argument if the first argument is NULL, but it still seems
worth cleaning up.

Signed-off-by: Alasdair Mackintosh <alasdair at google.com>
src/common/dpp_crypto.c