ipconfig: IPv4 gateway can be NULL
authorSamuel Ortiz <sameo@linux.intel.com>
Thu, 24 Feb 2011 14:28:00 +0000 (15:28 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 24 Feb 2011 14:28:00 +0000 (15:28 +0100)
For point to point interfaces, our IPv4 gateway will be NULL.

src/ipconfig.c

index ca983b4..4cf4922 100644 (file)
@@ -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);