mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 23:09:34 +01:00
eap-wsc: Zero a temporary buffer before freeing
This commit is contained in:
parent
45d74ac1ed
commit
0480989a73
@ -1157,11 +1157,13 @@ static bool load_hexencoded(struct l_settings *settings, const char *key,
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (decoded_len != len) {
|
if (decoded_len != len) {
|
||||||
|
explicit_bzero(decoded, decoded_len);
|
||||||
l_free(decoded);
|
l_free(decoded);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
memcpy(to, decoded, len);
|
memcpy(to, decoded, len);
|
||||||
|
explicit_bzero(decoded, decoded_len);
|
||||||
l_free(decoded);
|
l_free(decoded);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user