res_pjsip_outbound_registration.c: Minor code cleanup.
authorRichard Mudgett <rmudgett@digium.com>
Thu, 22 Jan 2015 19:14:35 +0000 (19:14 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 22 Jan 2015 19:14:35 +0000 (19:14 +0000)
commite67ca431ee2addffd9e23c895ef170f2dc79bfb6
treeda22f2fb93fd5070a87c0f74449ee707d251ca07
parent49f405fe4c4c758a0d99d05ed2d35f55dd76b732
res_pjsip_outbound_registration.c: Minor code cleanup.

* Add an allocation failure check and assert in
sip_outbound_registration_response_cb().

* Made sip_outbound_registration_state_destroy() handle partially created
state objects from sip_outbound_registration_state_alloc().

Review: https://reviewboard.asterisk.org/r/4366/
........

Merged revisions 430957 from http://svn.asterisk.org/svn/asterisk/branches/13

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