Simplify eapol_sm_get_mib() result handling
authorJouni Malinen <j@w1.fi>
Sat, 13 Dec 2014 17:15:38 +0000 (19:15 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 13 Dec 2014 17:15:38 +0000 (19:15 +0200)
commit5ac73acf123d75dc8091301d113a33964cae5931
tree4495fea8aea2e4c1f8b16a72755345f920f209f4
parent70d29ec946b9a811be98b1c66a8f824f40cacc3b
Simplify eapol_sm_get_mib() result handling

This function cannot return negative value, so no need to check for
that. If there is not enough room in the buffer or if something
unexpected happens, 0 is returned.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c