]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Fix validation on Invitation Request error path
authorJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 00:06:06 +0000 (02:06 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 08:35:33 +0000 (10:35 +0200)
commitfa72a880ed34929ed801b89afb2e243d49e06e07
tree9a955282207e341555ad227825899719e7757934
parentca412c7a389c90b78f26e315f78d55d06efc47c4
P2P: Fix validation on Invitation Request error path

It was possible for the error path to try to use P2P Group ID attribute
even if one was not included in the message. This could result in
dereferencing a NULL pointer, so re-check the pointer before copying the
data.

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