diff options
-rw-r--r-- | src/network.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c index 5fdc43cc..ffbf220b 100644 --- a/src/network.c +++ b/src/network.c @@ -1332,6 +1332,9 @@ int __connman_network_set_ipconfig(struct connman_network *network, enum connman_ipconfig_method method; int ret; + if (network == NULL) + return -EINVAL; + if (ipconfig_ipv6) { method = __connman_ipconfig_get_method(ipconfig_ipv6); |