projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f01f715
)
ipconfig: IPv4 gateway can be NULL
author
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 24 Feb 2011 14:28:00 +0000
(15:28 +0100)
committer
Samuel 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
patch
|
blob
|
history
diff --git
a/src/ipconfig.c
b/src/ipconfig.c
index
ca983b4
..
4cf4922
100644
(file)
--- 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);