]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Don't attempt to purge sessions when no sessions exist
authorMatthew Jordan <mjordan@digium.com>
Sun, 4 Nov 2012 03:09:26 +0000 (03:09 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 4 Nov 2012 03:09:26 +0000 (03:09 +0000)
commit769d9aa25943e9cd618c7be9bde5ef1eb7dd510f
tree904f607950a1e412f842f779ee8de7d842cf3e2c
parente4afa2c0e241e17e8bc0618bb824deff67dba480
Don't attempt to purge sessions when no sessions exist

Manager's tcp/tls objects have a periodic function that purge old manager
sessions periodically.  During shutdown, the underlying container holding
those sessions can be disposed of and set to NULL before the tcp/tls periodic
function is stopped.  If the periodic function fires, it will attempt to
iterate over a NULL container.

This patch checks for whether or not the sessions container exists before
attempting to purge sessions out of it.  If the sessions container is NULL,
we simply return.

Note that this error was also caught by the Asterisk Test Suite.
........

Merged revisions 375800 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 375801 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@375802 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c