commit | fec2c6d7eb58574b32eaa26222d3fb903b738cfa | [log] [tgz] |
---|---|---|
author | Joachim Bauch <jbauch@webrtc.org> | Wed May 27 23:41:43 2015 +0200 |
committer | Joachim Bauch <jbauch@webrtc.org> | Wed May 27 21:41:52 2015 +0000 |
tree | 57b52ddd8804e8d2dca26fff5c5813886bc19b75 | |
parent | 10602605f8bf73e483742e10666bbc14edc09831 [diff] |
Prevent potential double-free if srtp_create fails. If srtp_create fails while adding streams, it deallocates the session but doesn't clear the passed pointer which then could lead to a double-free in the SrtpSession dtor. The CL also adds locking for libsrtp initialization / shutdown. BUG=4042 R=jiayl@webrtc.org, juberti@google.com, pthatcher@webrtc.org Review URL: https://webrtc-codereview.appspot.com/47319004 Cr-Commit-Position: refs/heads/master@{#9300}