mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
client: Add NULL check for ops
This commit is contained in:
parent
4b4c7217fb
commit
8f632633c1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user