mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Fix IO conversion bug
Expression 'rlen < 0' is always false. Unsigned type value is never < 0. Change-Id: Id9f393ff25b009a6c4a6e40b95f561a9369e4585
This commit is contained in:
@@ -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)
|
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;
|
int xlen = len;
|
||||||
char *rbuf = buf;
|
char *rbuf = buf;
|
||||||
int sanity = 10;
|
int sanity = 10;
|
||||||
|
Reference in New Issue
Block a user