]> 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)
committerJoshua Colp <jcolp@sangoma.com>
Tue, 1 Feb 2022 13:39:46 +0000 (07:39 -0600)
commit8e592dc767346156378700faf5ce92363ef901f4
tree350b3be26fb2042a56f8307bdb9e0d4f8ef753e1
parent48fb5c73b7f48eeefef28ac9d3c0c67928830c96
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