Only deref a reserved gateway session if we actually reserved one
authorMatthew Jordan <mjordan@digium.com>
Sun, 4 Nov 2012 02:44:35 +0000 (02:44 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 4 Nov 2012 02:44:35 +0000 (02:44 +0000)
Its perfectly acceptable to have a gateway session unreserved when we go to
first allocate one.  Unreffing the reserved gateway session - when its NULL -
will result in an assertion error.

This problem was caught by the Asterisk Test Suite (once we had enough of the
debugging flags enabled)
........

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

Merged revisions 375798 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@375799 65c4cc65-6c06-0410-ace0-fbb531ad65f3


No differences found