]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Chaos: make hangup NULL tolerant 46/1146/1
authorScott Griepentrog <scott@griepentrog.com>
Wed, 26 Aug 2015 19:25:42 +0000 (14:25 -0500)
committerScott Griepentrog <sgriepentrog@digium.com>
Wed, 26 Aug 2015 20:19:20 +0000 (15:19 -0500)
commitf1cd6366588c66dce5be66541ceb7f828fde3773
tree5e990f45af0c9edfc54f6661289c0e3465c69eff
parentc01111223f9dbd383a4dd1cf786b63eff214f238
Chaos: make hangup NULL tolerant

In chan_pjsip_new, if allocation of the pvt
structure fails, ast_hangup is called.  But
it was written to assume pvt was valid, and
this change corrects that.

ASTERISK-25323
Reported by: Scott Griepentrog

Change-Id: I5f47860fe9cee4cd56abd3f79b108678ab72cc87
channels/chan_pjsip.c