diff options
Diffstat (limited to 'src/connection.c')
-rw-r--r-- | src/connection.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/connection.c b/src/connection.c index 6b2dd2b0..793bc8f5 100644 --- a/src/connection.c +++ b/src/connection.c @@ -385,6 +385,9 @@ gboolean __connman_connection_update_gateway(void) struct gateway_data *active_gateway, *default_gateway; gboolean updated = FALSE; + if (gateway_hash == NULL) + return updated; + update_order(); active_gateway = find_active_gateway(); |