mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 19:02:34 +01:00
anqp: fix potential NULL pointer dereference
This commit is contained in:
parent
269377c92f
commit
81ec93fdcc
@ -287,6 +287,9 @@ uint32_t anqp_request(uint32_t ifindex, const uint8_t *addr,
|
||||
uint32_t duration = 300;
|
||||
struct netdev *netdev = netdev_find(ifindex);
|
||||
|
||||
if (!netdev)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
* TODO: Netdev dependencies will eventually be removed so we need
|
||||
* another way to figure out wiphy capabilities.
|
||||
|
Loading…
Reference in New Issue
Block a user