]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Don't assume a request will have any addresses. 88/3888/1
authorJoshua Colp <jcolp@digium.com>
Tue, 13 Sep 2016 11:08:18 +0000 (07:08 -0400)
committerJoshua Colp <jcolp@digium.com>
Tue, 13 Sep 2016 11:09:56 +0000 (07:09 -0400)
commitb6207cab24f50135a873cda75fcca57a75d59f45
treef593567c6c67b0556a51b3334f0460cbe7fcfa7d
parentd910a51b33f1c6ac492e6aab9e9ce9c4df05ae99
res_pjsip: Don't assume a request will have any addresses.

When performing DNS resolution the failover code present in
res_pjsip currently assumes that a request will always have
at least one viable address. In practice this is not true.
A domain may be used that has no records.

The code now checks that at least one address exists on the
request which prevents looping.

ASTERISK-26364 #close

Change-Id: Ic0761b0264864acd85915c94d878a81624940f4c
res/res_pjsip.c