Fix crash in res_pjsip_outbound_registration when the remote server can not be resolved.
authorJoshua Colp <jcolp@digium.com>
Tue, 6 Aug 2013 12:39:27 +0000 (12:39 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 6 Aug 2013 12:39:27 +0000 (12:39 +0000)
commit5b3441ae554997427cf905d84bb840e41c6ad143
tree8353fa77bd52f56aa3a33f3647d4848daa667f80
parent07d3705b42a157423ba11fca5e5b57ea1bf303c6
Fix crash in res_pjsip_outbound_registration when the remote server can not be resolved.

This crash was caused by decrementing the reference count of a newly created message when
it should not be. This change fixes that but also fixes all other cases where this was
incorrectly done.

(closes issue ASTERISK-22188)
Reported by: Kinsey Moore

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