From ecdbaef2886b8318e7b15bdac480df43a8b49a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 1 Oct 2018 22:59:05 +0200 Subject: relay: remove useless test on length --- src/plugins/relay/relay-websocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/relay') diff --git a/src/plugins/relay/relay-websocket.c b/src/plugins/relay/relay-websocket.c index 6d31cb8c8..bbac751dc 100644 --- a/src/plugins/relay/relay-websocket.c +++ b/src/plugins/relay/relay-websocket.c @@ -368,7 +368,7 @@ relay_websocket_encode_frame (int opcode, frame[1] = length; index = 2; } - else if ((length >= 126) && (length <= 65535)) + else if (length <= 65535) { /* length on 2 bytes */ frame[1] = 126; -- cgit v1.2.3