1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2025-01-05 19:15:32 +00:00

sip: origin: Bail when trying to go online but nua handle is not present

This fixes a segmentation fault.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-08-27 17:40:03 +02:00
parent b8f628740a
commit 5371debc57

View file

@ -888,6 +888,12 @@ go_online (CallsAccount *account,
self = CALLS_SIP_ORIGIN (account);
if (!self->nua) {
g_warning ("Cannot go online: nua handle not initialized");
g_object_notify_by_pspec (G_OBJECT (self), props[PROP_ACC_STATE]);
return;
}
if (online) {
g_autofree char *registrar_url = NULL;