]> git.ipfire.org Git - thirdparty/hostap.git/commit
roboswitch: Verify that register read succeeds before comparing result
authorJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 13:12:21 +0000 (15:12 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 2 Mar 2014 15:15:12 +0000 (17:15 +0200)
commita8716d13bfba9345d05b6078dfff018371587d16
tree990c0a6ce634ffda7a50bddb4ba504ca0e6553af
parent3d91a0470f27780a3aee943b01f548d360b3f5fb
roboswitch: Verify that register read succeeds before comparing result

If wpa_driver_roboswitch_read() fails before such comparison, the values
that are being compared are not initialized properly and as such, there
is not much point in comparing them either.

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