P2P: Check memory allocation result in a Service Discovery Response
authorMasashi Honma <masashi.honma@gmail.com>
Mon, 2 Jul 2012 17:53:46 +0000 (20:53 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 2 Jul 2012 17:53:46 +0000 (20:53 +0300)
commit8f4636e41c621b1a930b43614eda7825a3f20c2f
tree18b333192414d3a6760c2b10df6796478ea4ec91
parent0cb87fdeb58b3de54a325179f07fba3dfe71d0ef
P2P: Check memory allocation result in a Service Discovery Response

This patch adds a check of the return value of wpabuf_dup() in a large
Service Discovery Response.

Signed-hostap: Masashi Honma <masashi.honma@gmail.com>
src/p2p/p2p_sd.c