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

client: Add NULL check for ops

This commit is contained in:
Tim Kourt 2017-04-25 10:18:46 -07:00 committed by Denis Kenzior
parent 4b4c7217fb
commit 8f632633c1

View File

@ -320,7 +320,7 @@ static void proxy_interface_create(const char *path,
proxy->path = l_strdup(path);
proxy->type = interface_type;
if (interface_type->ops->create) {
if (interface_type->ops && interface_type->ops->create) {
proxy->data = interface_type->ops->create();
interface_update_properties(proxy, &properties, NULL);