WPS: Fix multi-interface WPS operations in hostapd
authorJouni Malinen <j@w1.fi>
Sun, 16 Aug 2015 19:38:31 +0000 (22:38 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 16 Aug 2015 20:14:44 +0000 (23:14 +0300)
commite1938ba93480e4a4681e92cd3b513f2e2474d494
tree26d6ea8dd2dbc0286ae0df6dccff8ee13ce240d6
parenta8fd08f7fcd4a5a460de12988fe816cc4c99c591
WPS: Fix multi-interface WPS operations in hostapd

Couple of the for-each-interface loops used incorrect return value when
skipping over non-WPS interfaces. This could result in skipping some WPS
interfaces in the loop and returning error. Setting AP PIN did not check
for WPS being enabled at all and trigger a NULL pointer dereference if
non-WPS interface was enabled.

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