]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cdr: Missing NULL check and unlock.
authorCorey Farrell <git@cfware.com>
Tue, 26 Dec 2017 02:39:28 +0000 (21:39 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 26 Dec 2017 02:53:02 +0000 (20:53 -0600)
commitd62c87bb8d169a29f696a1aa2b23a2267f531e7e
tree738e6541e2e5c1d9c8e83b7f8c50ced146056321
parent53799318bc040a2082904df86d42ab08790b47ec
cdr: Missing NULL check and unlock.

* handle_dial_message: Missing a check for NULL peer.
* ast_cdr_register: Missing unlock on allocation failure.

ast_cdr_register is fixed by reordering so the new structure is
allocated and initialized before locking the list.

Change-Id: I5799b99270d1a7a716a555c31ac85f4b00ce8686
main/cdr.c