]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix IO conversion bug 94/4594/1
authorBadalyan Vyacheslav <v.badalyan@open-bs.ru>
Thu, 8 Dec 2016 18:34:28 +0000 (18:34 +0000)
committerBadalyan Vyacheslav <v.badalyan@open-bs.ru>
Thu, 8 Dec 2016 18:34:28 +0000 (18:34 +0000)
Expression 'rlen < 0' is always false.
Unsigned type value is never < 0.

Change-Id: Id9f393ff25b009a6c4a6e40b95f561a9369e4585

res/res_http_websocket.c

index 106ba488bee0b4b353a21c8763225fad021dcfad..84138234ebffd89de0329f54e16adb8d41da2851 100644 (file)
@@ -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;