From dc38694d77414fe6e01d379bc6197014057131f6 Mon Sep 17 00:00:00 2001 From: Christoph Huber Date: Tue, 20 Jul 2021 13:52:55 +0200 Subject: [PATCH] sip: fix possible "???" dns srv queries by skipping lines without srvid --- src/sip/request.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sip/request.c b/src/sip/request.c index 6968a8b80..e11e57f82 100644 --- a/src/sip/request.c +++ b/src/sip/request.c @@ -294,6 +294,11 @@ static bool transp_next_srv(struct sip *sip, enum sip_transp *tp) enum sip_transp i; for (i=(enum sip_transp)(*tp-1); i>SIP_TRANSP_NONE; i--) { + const char *srvid; + + srvid = sip_transp_srvid(i); + if (0 == str_cmp(srvid, "???")) + continue; if (!sip_transp_supported(sip, i, AF_UNSPEC)) continue;