From 8f632633c15e85ab2eafb433f7e547d8618ec406 Mon Sep 17 00:00:00 2001 From: Tim Kourt Date: Tue, 25 Apr 2017 10:18:46 -0700 Subject: [PATCH] client: Add NULL check for ops --- client/dbus-proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/dbus-proxy.c b/client/dbus-proxy.c index 1a133e39..2efb4132 100644 --- a/client/dbus-proxy.c +++ b/client/dbus-proxy.c @@ -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);