diff options
author | kuonirat <konrad.procak@gmail.com> | 2014-07-08 16:15:18 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-07-09 11:57:45 +0200 |
commit | 0be8808cbd6cd490d842876cefd249796838b377 (patch) | |
tree | d5fcde2db9a66178e06d4d5330f287548a192129 | |
parent | 5358d6fea0b27ae4c71de6ce0b4d71060906216e (diff) | |
download | ModemManager-0be8808cbd6cd490d842876cefd249796838b377.tar.gz |
broadband-modem-mbim: update_registration_info immune to null pointers passed
-rw-r--r-- | src/mm-broadband-modem-mbim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-broadband-modem-mbim.c b/src/mm-broadband-modem-mbim.c index 9fa78b994..a2ae4cd0e 100644 --- a/src/mm-broadband-modem-mbim.c +++ b/src/mm-broadband-modem-mbim.c @@ -1562,7 +1562,7 @@ update_registration_info (MMBroadbandModemMbim *self, if (reg_state == MM_MODEM_3GPP_REGISTRATION_STATE_HOME || reg_state == MM_MODEM_3GPP_REGISTRATION_STATE_ROAMING) { - if (self->priv->current_operator_id && + if (self->priv->current_operator_id && operator_id_take && g_str_equal (self->priv->current_operator_id, operator_id_take)) { g_free (operator_id_take); } else { @@ -1570,7 +1570,7 @@ update_registration_info (MMBroadbandModemMbim *self, self->priv->current_operator_id = operator_id_take; } - if (self->priv->current_operator_name && + if (self->priv->current_operator_name && operator_name_take && g_str_equal (self->priv->current_operator_name, operator_name_take)) { g_free (operator_name_take); } else { |