]> git.ipfire.org Git - thirdparty/asterisk.git/commit
astobj2.c: Fix core when ref_log enabled
authorMike Bradeen <mbradeen@sangoma.com>
Tue, 16 Nov 2021 22:34:28 +0000 (15:34 -0700)
committerJoshua Colp <jcolp@sangoma.com>
Fri, 19 Nov 2021 15:54:18 +0000 (09:54 -0600)
commitea941032ffe9b3acbc1d41c24990590771fe3bb2
treeb3c6f2c7f0f21e8f3bb98249ca1ffa5993a88d5f
parent3f86c95cf553e5b3b9e6d7e123b9a23d701df3fd
astobj2.c: Fix core when ref_log enabled

In the AO2_ALLOC_OPT_LOCK_NOLOCK case the referenced obj
structure is freed, but is then referenced later if ref_log is
enabled. The change is to store the obj->priv_data.options value
locally and reference it instead of the value from the freed obj

ASTERISK-29730

Change-Id: I60cc5dc1f5a4330e7ad56976fc38a42de0ab6072
main/astobj2.c