P2PS: Verify service name length in P2P_FIND command
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 18 Jun 2015 14:04:16 +0000 (17:04 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 18 Jun 2015 14:27:30 +0000 (17:27 +0300)
commitf33a31b06c85a3e64cde81bbbcc15e18c87d58fa
tree825d29f3c961a2d1bb15cd63c38c9b3c1245fce1
parent129b62165334394042a798648ab37965ea1f38dd
P2PS: Verify service name length in P2P_FIND command

p2ps_gen_hash() has a limit on service names based on the temporary
buffer from stack. Verify that the service name from the local P2P_FIND
command is short enough to fix into that buffer.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c