]> git.ipfire.org Git - thirdparty/hostap.git/commit
Multi-AP: Avoid memcpy(ptr, NULL, 0) in WPS Registrar initialization
authorJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 09:37:20 +0000 (11:37 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 23 Feb 2019 09:37:20 +0000 (11:37 +0200)
commit1415d4b82d5eab4c8edf2c2b32200137ae0178c3
tree402ccb8e8b9011e5478af769c6459e57d36e3019
parent2c129a1b71c6dcaff7e4db388f4fae303d265437
Multi-AP: Avoid memcpy(ptr, NULL, 0) in WPS Registrar initialization

This can result in compiler warnings due to the unexpected NULL pointer
as a source memory even when the length of the copied data is 0.

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