• Pascal Bühler's avatar
    Ensure stream is freed if cloning fails · 7eaf9f7c
    Pascal Bühler authored
    srtp_stream_ctx_t is a complex struct, so once it has been
    been allocated with srtp_crypto_alloc and at least partially
    initialized it should always be freed with srtp_stream_free.
    For this to work the struct needs to be initialized to 0.
    
    Found in coverity.
    7eaf9f7c