]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix for segfault in __ast_rwlock_destroy with DEBUG_THREADS
authorKevin Harwell <kharwell@digium.com>
Wed, 15 May 2013 15:57:25 +0000 (15:57 +0000)
committerKevin Harwell <kharwell@digium.com>
Wed, 15 May 2013 15:57:25 +0000 (15:57 +0000)
commitfaeea4c0f2e95b129cce3d59c8dd9ec8d48d015e
tree1f3d69a040dcd558dcc7b283e6d61d7733717356
parent67729f624971bc1e6c1d0547e4f11c8cb83a8ccb
Fix for segfault in __ast_rwlock_destroy with DEBUG_THREADS

If DEBUG_THREADS is enabled __ast_rwlock_destroy causes a segfault while trying
to access a possible NULL t->track object.  A NULL check has been added before
trying to access the memory.

(closes issue ASTERISK-21724)
Reported by: Corey Farrell
Fixed by: Corey Farrell
Patches:
ast_rwlock_destroy-segv.patch uploaded by Corey Farrell (license 5909)
........

Merged revisions 388838 from http://svn.asterisk.org/svn/asterisk/branches/1.8

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@388839 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/lock.c