]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_rtp_asterisk: Resolve 2 discrete memory leaks in DTLS 69/269/4
authorSteve Davies <steve@one47.co.uk>
Tue, 28 Apr 2015 10:38:30 +0000 (11:38 +0100)
committerJoshua Colp <jcolp@digium.com>
Tue, 28 Apr 2015 11:57:39 +0000 (06:57 -0500)
commit0b6410c4f880d8f715621de2c95b07ea3489d853
treec04e6dee60e4d7682e698c8c9468834f79e62a2d
parent427209603d77a3e26925cda5725294fe5a7026b0
res_rtp_asterisk: Resolve 2 discrete memory leaks in DTLS

ao2 ref leak in res_rtp_asterisk.c when a DTLS policy is created.
The resources are linked into a table, but the original alloc refs
are never released. ast_strdup leak in rtp_engine.c. If
ast_rtp_dtls_cfg_copy() is called twice on the same destination struct,
a pointer to an alloc'd string is overwritten before the string is free'd.

ASTERISK-25022
Reported by: one47

Change-Id: I62a8ceb8679709f6c3769136dc6aa9a68202ff9b
main/rtp_engine.c
res/res_rtp_asterisk.c