mirror of https://github.com/asterisk/asterisk
Two error paths in res_http_websocket could leak an ast_websocket session by failing to drop a reference after the session had been allocated. The first occurs when session ID generation fails. While this is largely theoretical, as it would require an out-of-memory condition, the session reference should still be released correctly. The second occurs when the ast_websocket_pre_callback session_attempted callback returns an error. This path is reachable through ari_websockets, which implements this callback and can legitimately fail under certain conditions. Fixes: #2020pull/2023/head
parent
546749516b
commit
ae85ad744a
Loading…
Reference in new issue