]> git.ipfire.org Git - thirdparty/asterisk.git/commit
cdr: Missing NULL check and unlock.
authorCorey Farrell <git@cfware.com>
Fri, 22 Dec 2017 05:56:44 +0000 (00:56 -0500)
committerCorey Farrell <git@cfware.com>
Tue, 26 Dec 2017 02:46:59 +0000 (20:46 -0600)
commit3fd1d1524d880d45ff025ef7862c607a3a4fd8a4
tree6de2d1bb911a08c3b0defffe4fff73e261db11a0
parent6d994c8223561acc00da796140ec6123ca76c2e0
cdr: Missing NULL check and unlock.

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

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

Change-Id: I5799b99270d1a7a716a555c31ac85f4b00ce8686
main/cdr.c