]> git.ipfire.org Git - thirdparty/hostap.git/commit
UBSan: Avoid memcmp(ptr, NULL, 0)
authorJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 11:50:47 +0000 (13:50 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 17:48:49 +0000 (19:48 +0200)
commitc4fccfc7a5dd75db8c28cab0ac27186d4598a995
treeea0ed7a089ab54d6e34a45b987f178118fb848a0
parent1b85cad29c13347c2c4361c15132bd0371936e7a
UBSan: Avoid memcmp(ptr, NULL, 0)

Skip the memcmp() call if ssid_len == 0 and entry->ssid might be NULL to
avoid an UBSan warning.

wpa_supplicant.c:3956:9: runtime error: null pointer passed as argument 2, which is declared to never be null

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