Fix potential NULL pointer dereference error with strtok_r()

strtok_r() return value can be NULL if an unexpected argument
value is used. Fix this by adding explicit NULL checks.

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