mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
client: Ops check on destroy
This commit is contained in:
parent
8f7066ec36
commit
425cb23f98
@ -418,7 +418,7 @@ static void proxy_interface_destroy(void *data)
|
||||
|
||||
l_free(proxy->path);
|
||||
|
||||
if (proxy->type->ops->destroy)
|
||||
if (proxy->type->ops && proxy->type->ops->destroy)
|
||||
proxy->type->ops->destroy(proxy->data);
|
||||
|
||||
proxy->type = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user