From 2df221c94ca5881ef2b3c07257589ab8289fcafd Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Tue, 31 Aug 2021 07:51:50 +0200 Subject: [PATCH] sip: origin: Warn instead of asserting in update_nua() on nua stack Crashing the application is overkill in this case. --- plugins/sip/calls-sip-origin.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c index d3b0f6e..744acb3 100644 --- a/plugins/sip/calls-sip-origin.c +++ b/plugins/sip/calls-sip-origin.c @@ -323,7 +323,10 @@ update_nua (CallsSipOrigin *self) g_autofree char *from_str = NULL; g_assert (CALLS_IS_SIP_ORIGIN (self)); - g_assert (self->nua); + if (!self->nua) { + g_warning ("Cannot update nua stack, aborting"); + return; + } self->protocol_prefix = get_protocol_prefix (self->transport_protocol);