P2P: Check os_get_random() return value more consistently
authorJouni Malinen <j@w1.fi>
Sat, 13 Sep 2014 13:27:52 +0000 (16:27 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 13 Sep 2014 13:27:52 +0000 (16:27 +0300)
commitdf2508d7a84bb31260c2dc480e5a693ed77cc748
tree784c39283134cc72c7adb71dbb4a78dddf4633de
parent54461f3e03bf88a91fa4f1c123564cb8e4ac22ac
P2P: Check os_get_random() return value more consistently

In theory, this call could fail, so check the return value before using
the received data. These specific cases would not really care much about
the failures, but this keeps the code more consistent and keeps static
analyzer warnings more useful. (CID 72678, CID 72679, CID 72680,
CID 72683, CID 72689, CID 72698, CID 72703)

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