• Sebastian Kemper's avatar
    [mod_event_multicast] Fix memory leak · fc41980f
    Sebastian Kemper 提交于
    Taken from FS-11193:
    
    In "event_handler()" function, when encrypting data using openssl 1.1.0,
    the context ctx is allocated by "EVP_CIPHER_CTX_new()", then data is
    encrypted, and at the end, EVP_CIPHER_CTX_cleanup is called. This
    function resets the context (the function itself is deprecated, and has
    been renamed to "EVP_CIPHER_CTX_reset) so that it can be used again. The
    correct call would be to "EVP_CIPHER_CTX_free()", which frees the
    memory. The code for openssl 1.0 is OK, since the "ctx" struct is kept
    in stack.  The same thing happens during decryption. "ctx" is allocated,
    but never freed.
    Signed-off-by: 's avatarEneas U de Queiroz <cote2004-github@yahoo.com>
    Signed-off-by: 's avatarSebastian Kemper <sebastian_ml@gmx.net>
    fc41980f
名称
最后提交
最后更新
..
conf/autoload_configs 正在载入提交数据...
Makefile.am 正在载入提交数据...
mod_event_multicast.2017.vcxproj 正在载入提交数据...
mod_event_multicast.c 正在载入提交数据...