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:
a7b3cd5
)
Check for active_gateway being non NULL before dereferencing it
author
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 29 Jun 2009 19:17:39 +0000
(21:17 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 30 Jun 2009 01:08:42 +0000
(
03:08
+0200)
src/connection.c
patch
|
blob
|
history
diff --git
a/src/connection.c
b/src/connection.c
index d057d8a6e414d124ba030eb54a330b2a962a1953..b20a5a1930eb84a1c66ade94dacca82305fdb586 100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-654,6
+654,6
@@
void __connman_connection_update_gateway(void)
active_gateway = find_active_gateway();
default_gateway = find_default_gateway();
- if (active_gateway != default_gateway)
+ if (active_gateway
&& active_gateway
!= default_gateway)
del_route(active_gateway->element, active_gateway->gateway);
}