]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Crash when using hagi and no servers are available.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 27 May 2011 23:45:41 +0000 (23:45 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Fri, 27 May 2011 23:45:41 +0000 (23:45 +0000)
commit8e6b43e3318b187bd02e0757d2aa2fe47aafb790
treea19aac4469641ccccbfa08b127afed0338a1d265
parent8323ef12bffe4d23236a686f9d8b0705c79d35e3
Crash when using hagi and no servers are available.

When none of the servers returned by the SRV querey respond, asterisk
crashes.  The problem is that if the loop over all the SRV entries
finishes then the srv_context has already been cleaned up.

* Make ast_srv_cleanup() check to see if the context is already cleaned
up.

(closes issue #19256)
Reported by: byronclark

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@321392 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/srv.c