]> git.ipfire.org Git - thirdparty/hostap.git/commit
HS 2.0: Fix hs20_get_icon() error path
authorJouni Malinen <j@w1.fi>
Mon, 4 Jul 2016 16:34:22 +0000 (19:34 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 4 Jul 2016 16:35:18 +0000 (19:35 +0300)
commit75b2a879524a34357f4705f5f7408c8974fe0ad5
treea09b238584f3bb76a9efefe91a9a24c6110b248f
parent8e590f02bd3a82701a9c084c2d60b76226ff747c
HS 2.0: Fix hs20_get_icon() error path

If base64_encode() fails (e.g., due to memory allocation failure), the
return value needs to be checked against NULL before using the (not
really) returned length value. The error path here ended up reading
uninitialized variable.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/hs20_supplicant.c