]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_outbound_authenticator_digest: Prevent ABRT on cleanup
authorGeorge Joseph <gjoseph@digium.com>
Mon, 31 Jan 2022 13:09:09 +0000 (06:09 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 1 Feb 2022 11:27:53 +0000 (05:27 -0600)
commit8d571ea6b54b71bf68ffec89c59db014df4481cb
tree1939ac26ff90d5777d1b6561255b00c8f9c9fd5d
parent386c5e495f6e9257391f531d0590b3ae73738b7f
res_pjsip_outbound_authenticator_digest: Prevent ABRT on cleanup

In dev mode, if you call pjsip_auth_clt_deinit() with an auth_sess
that hasn't been initialized, it'll assert and abort.  If
digest_create_request_with_auth() fails to find the proper
auth object however, it jumps to its cleanup which does exactly
that.  So now we no longer attempt to call pjsip_auth_clt_deinit()
if we never actually initialized it.

ASTERISK-29888

Change-Id: Ib6171c25c9fe8e61cc8d11129e324c021bc30b62
res/res_pjsip_outbound_authenticator_digest.c