From 1773bb1001d9edb90c21a57a9de5f7fd35881f8e Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Thu, 24 Feb 2011 15:28:00 +0100 Subject: [PATCH] ipconfig: IPv4 gateway can be NULL For point to point interfaces, our IPv4 gateway will be NULL. --- src/ipconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipconfig.c b/src/ipconfig.c index ca983b4..4cf4922 100644 --- a/src/ipconfig.c +++ b/src/ipconfig.c @@ -1068,7 +1068,7 @@ int __connman_ipconfig_gateway_add(struct connman_ipconfig *ipconfig) DBG(""); - if (ipconfig->address == NULL || ipconfig->address->gateway == NULL) + if (ipconfig->address == NULL) return -EINVAL; service = __connman_service_lookup_from_index(ipconfig->index); -- 2.7.4