Commit a169d689 authored by Thomas Haller's avatar Thomas Haller
Browse files

wwan: avoid dangling pointer for error variable in connect_ready()

parent 0ef23b13
......@@ -385,9 +385,10 @@ connect_ready (MMModemSimple *simple_iface,
g_dbus_error_strip_remote_error (error);
ctx->first_error = error;
} else
g_error_free (error);
g_clear_error (&error);
if (ctx->ip_type_tries == 0 && g_error_matches (error, MM_CORE_ERROR, MM_CORE_ERROR_RETRY)) {
if ( ctx->ip_type_tries == 0
&& g_error_matches (error, MM_CORE_ERROR, MM_CORE_ERROR_RETRY)) {
/* Try one more time */
ctx->ip_type_tries++;
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment