Fix potential NULL pointer dereference errors in multiple instances

Functions get_param() and wifi_get_iface_handle() can return a NULL
value. Fix potential NULL pointer dereferences by adding explicit NULL
check before assigning the return value.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
1 file changed