]> git.ipfire.org Git - thirdparty/hostap.git/commit
UBSan: Avoid NULL pointer dereferences on an error path
authorJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 14:24:19 +0000 (16:24 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 25 Feb 2019 17:48:49 +0000 (19:48 +0200)
commit8fc22fdde6a207a72369cc1da1aa3103368db003
tree0740d732deaeaabfa4f0b35b764ce8639682f7cb
parent43216777e5e4ecc4ffdce7471925970f4f1a701b
UBSan: Avoid NULL pointer dereferences on an error path

hapd->conf might be NULL in case initialized failed, so better be
prepared for that when debug printing interface name in the deinit path.

hostapd.c:312:54: runtime error: member access within null pointer of type 'struct hostapd_bss_config'
hostapd.c:351:29: runtime error: member access within null pointer of type 'struct hostapd_bss_config'
hostapd.c:2158:18: runtime error: member access within null pointer of type 'struct hostapd_bss_config'

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