mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 20:20:17 +01:00
wwan: avoid dangling pointer for error variable in connect_ready()
This commit is contained in:
parent
0ef23b139d
commit
a169d689ba
1 changed files with 3 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue