knownnetworks: check for valid info before calling op

This commit is contained in:
James Prestwood 2019-09-09 16:03:59 -07:00 committed by Denis Kenzior
parent 99483489bc
commit 6aeeb9eaad
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ const struct iovec *network_info_get_extra_ies(const struct network_info *info,
struct scan_bss *bss,
size_t *num_elems)
{
if (!info->ops->get_extra_ies)
if (!info || !info->ops->get_extra_ies)
return NULL;
return info->ops->get_extra_ies(info, bss, num_elems);