From 93ce1a371aa6cdf8d9c1d72ae0c405bfc47c244a Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Mon, 16 Mar 2020 22:38:47 +0400 Subject: [PATCH] [sofia-sip] Sip crash on unresolvable dns resolution error of outbound request. --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/nta/nta.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index 379d5d609c..0a25dc4ef5 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Mon Feb 24 22:07:30 UTC 2020 +Mon Mar 16 18:37:11 UTC 2020 diff --git a/libs/sofia-sip/libsofia-sip-ua/nta/nta.c b/libs/sofia-sip/libsofia-sip-ua/nta/nta.c index 81f849aea8..ca67cc032f 100644 --- a/libs/sofia-sip/libsofia-sip-ua/nta/nta.c +++ b/libs/sofia-sip/libsofia-sip-ua/nta/nta.c @@ -10886,6 +10886,8 @@ void outgoing_answer_a(sres_context_t *orq, sres_query_t *q, if (results) outgoing_query_results(orq, sq, results, found); + else if (!q) + outgoing_resolving_error(orq, SIPDNS_503_ERROR); } /** Store A/AAAA query results */