]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Only deref a reserved gateway session if we actually reserved one
authorMatthew Jordan <mjordan@digium.com>
Sun, 4 Nov 2012 02:43:25 +0000 (02:43 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sun, 4 Nov 2012 02:43:25 +0000 (02:43 +0000)
commite4afa2c0e241e17e8bc0618bb824deff67dba480
tree83ca0b8e065407a2abbc2c703d74eb7197d5f0fe
parentd38c42aab85610554608aafaaf19335f566981e8
Only deref a reserved gateway session if we actually reserved one

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@375798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_fax.c