From: Badalyan Vyacheslav Date: Thu, 8 Dec 2016 18:34:28 +0000 (+0000) Subject: Fix IO conversion bug X-Git-Tag: 15.0.0-beta1~453^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=149d8db96ce4390f52be84d5846b053e02e6b907;p=thirdparty%2Fasterisk.git Fix IO conversion bug Expression 'rlen < 0' is always false. Unsigned type value is never < 0. Change-Id: Id9f393ff25b009a6c4a6e40b95f561a9369e4585 --- diff --git a/res/res_http_websocket.c b/res/res_http_websocket.c index 106ba488be..84138234eb 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;