VLAN: Check vlan_desc validity in a failure debug print
authorJouni Malinen <j@w1.fi>
Sat, 20 Feb 2016 17:22:43 +0000 (19:22 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 20 Feb 2016 17:22:43 +0000 (19:22 +0200)
commit75cc211d6b40b0028343bcca94c61e458445b4ec
treed154f7d5270027ca02b165195719023681650899
parent43022abdb96b7e8e443b26723e9c8c40287a796e
VLAN: Check vlan_desc validity in a failure debug print

The recent VLAN changes added an explicit code path that sets vlan_desc
= NULL within ap_sta_set_vlan(). This makes some code analyzers warn
about the debug print that could potentially dereference this pointer.
Silence that warning by verifying the pointer more consistently within
this function.

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