3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-06 03:18:46 +02:00

client: Ops check on destroy

This commit is contained in:
Tim Kourt 2017-04-26 16:08:43 -07:00 committed by Denis Kenzior
parent 8f7066ec36
commit 425cb23f98

View File

@ -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;