diff options
author | Corey Farrell <git@cfware.com> | 2014-11-04 19:32:21 +0000 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2014-11-04 19:32:21 +0000 |
commit | 3e29fa36865daeddb14e455b1108c7d49751c9c8 (patch) | |
tree | 0d3349b95545da70c0bcb57867e11b5feea46721 /res/res_http_websocket.c | |
parent | ac48e34b879768a6efbf1651693acdf030496f8f (diff) |
res_http_websockets: Fix extra unref of module
In websocket_add_protocol_internal is used to add the "echo"
protocol, but ast_websocket_remove_protocol is used to remove
it. This causes an extra call to ast_module_unref.
ASTERISK-24480 #close
Reported by: Corey Farrell
Review: https://reviewboard.asterisk.org/r/4140/
........
Merged revisions 427200 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@427201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_http_websocket.c')
-rw-r--r-- | res/res_http_websocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c index ca144b0d4..e47bcd231 100644 --- a/res/res_http_websocket.c +++ b/res/res_http_websocket.c @@ -1292,7 +1292,7 @@ static int load_module(void) static int unload_module(void) { - ast_websocket_remove_protocol("echo", websocket_echo_callback); + websocket_remove_protocol_internal("echo", websocket_echo_callback); ast_http_uri_unlink(&websocketuri); ao2_ref(websocketuri.data, -1); websocketuri.data = NULL; |