]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix handling of if_indices reallocation failure
authorJouni Malinen <j@w1.fi>
Sun, 28 Apr 2019 17:52:10 +0000 (20:52 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 28 Apr 2019 17:52:10 +0000 (20:52 +0300)
commite6ca2f1139b35671b963aa169d6ebda75073e705
tree0ec5390b7b9ad5b824d99edc71f7ff3383012ad8
parentb93a0ce7bdf32ec434e6d184e3a129599532e321
nl80211: Fix handling of if_indices reallocation failure

Addition of a separate if_indices_reason array broke reallocation
failure checking. drv->if_indices or drv->if_indices_reason could not be
NULL in the place where this check was moved to. Fix that by maintaining
knowledge of reallocation failure in a separate local variable.

Fixes: 732b1d20ec06 ("nl80211: Clean up ifidx properly if interface in a bridge is removed")
Signed-off-by: Jouni Malinen <j@w1.fi>
src/drivers/driver_nl80211.c