Skip to content

Commit

Permalink
sip: fix possible "???" dns srv queries by skipping lines without srvid
Browse files Browse the repository at this point in the history
  • Loading branch information
cHuberCoffee authored and sreimers committed Jul 27, 2021
1 parent bc119c2 commit ae64519
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sip/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ae64519

Please sign in to comment.