sta_ip_config: Fix potential NULL pointer dereference error

"ip" and "mask" values fetched by cmd_sta_set_ip_config() can be NULL.
This could lead to NULL pointer dereference in case of IPv6. The
original IPv4-only implementation used to check the values before
proceeding, but that was broken when IPv6 support was added. Fix this by
restoring NULL checks before proceeding for all cases.

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