]> git.ipfire.org Git - thirdparty/hostap.git/commit
EAP-pwd server: Fix reassembly buffer handling
authorJouni Malinen <jouni@codeaurora.org>
Tue, 16 Apr 2019 22:55:32 +0000 (01:55 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 16 Apr 2019 23:23:31 +0000 (02:23 +0300)
commitfe76f487e28bdc61940f304f153a954cf36935ea
tree4652bdca012625831907213c7a4993b1568e3745
parenta9d224f560be8a7761c00681d48da4bd0b57225b
EAP-pwd server: Fix reassembly buffer handling

data->inbuf allocation might fail and if that were to happen, the next
fragment in the exchange could have resulted in NULL pointer
dereference. Unexpected fragment with more bit might also be able to
trigger this. Fix that by explicitly checking for data->inbuf to be
available before using it.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/eap_server/eap_server_pwd.c