summaryrefslogtreecommitdiff
path: root/res/res_http_websocket.c
diff options
context:
space:
mode:
authorBadalyan Vyacheslav <v.badalyan@open-bs.ru>2016-12-08 18:34:28 +0000
committerBadalyan Vyacheslav <v.badalyan@open-bs.ru>2016-12-08 18:34:28 +0000
commit149d8db96ce4390f52be84d5846b053e02e6b907 (patch)
treeabca114ba464e1b2e92433e7f6950bf30b15959f /res/res_http_websocket.c
parent5a96e1fb5e0158bf29accff11aea8afea8b40f48 (diff)
Fix IO conversion bug
Expression 'rlen < 0' is always false. Unsigned type value is never < 0. Change-Id: Id9f393ff25b009a6c4a6e40b95f561a9369e4585
Diffstat (limited to 'res/res_http_websocket.c')
-rw-r--r--res/res_http_websocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c
index 106ba488b..84138234e 100644
--- a/res/res_http_websocket.c
+++ b/res/res_http_websocket.c
@@ -490,7 +490,7 @@ const char * AST_OPTIONAL_API_NAME(ast_websocket_session_id)(struct ast_websocke
*/
static inline int ws_safe_read(struct ast_websocket *session, char *buf, int len, enum ast_websocket_opcode *opcode)
{
- size_t rlen;
+ ssize_t rlen;
int xlen = len;
char *rbuf = buf;
int sanity = 10;