提交 a4dfb546 authored 作者: Jeff Lenk's avatar Jeff Lenk

FS-6103 --resolve

上级 756ba1c8
...@@ -594,7 +594,7 @@ abyss_bool websocket_hook(TSession *r) ...@@ -594,7 +594,7 @@ abyss_bool websocket_hook(TSession *r)
wsh = ws_init(r); wsh = ws_init(r);
if (!wsh) { if (!wsh) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "websocket error %d\n", ret); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "websocket memory error\n");
return FALSE; return FALSE;
} }
......
...@@ -311,7 +311,6 @@ issize_t ws_raw_read(wsh_t *wsh, void *data, size_t bytes) ...@@ -311,7 +311,6 @@ issize_t ws_raw_read(wsh_t *wsh, void *data, size_t bytes)
} }
return r;
} }
issize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes) issize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes)
...@@ -331,13 +330,11 @@ issize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes) ...@@ -331,13 +330,11 @@ issize_t ws_raw_write(wsh_t *wsh, void *data, size_t bytes)
} else { } else {
return 0; return 0;
} }
return r;
} }
wsh_t * ws_init(ws_tsession_t *tsession) wsh_t * ws_init(ws_tsession_t *tsession)
{ {
wsh_t *wsh = malloc(sizeof(*wsh)); wsh_t *wsh = (wsh_t *)malloc(sizeof(*wsh));
if (!wsh) return NULL; if (!wsh) return NULL;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论