From 19e10aaf3e1683548e0dd5da81ba1d5c20714a0c Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Fri, 11 May 2018 22:34:19 +0200
Subject: Fix UTF-8 validation
---
json-rpc-shell.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index 7d104a2..77a9fa9 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -1958,7 +1958,7 @@ backend_ws_on_frame (void *user_data, const struct ws_parser *parser)
return true;
if (self->message_opcode == WS_OPCODE_TEXT
- && !utf8_validate (self->parser.input.str, self->parser.input.len))
+ && !utf8_validate (self->message_data.str, self->message_data.len))
return backend_ws_fail (self, WS_STATUS_INVALID_PAYLOAD_DATA);
bool result = backend_ws_on_message (self, self->message_opcode,
--
cgit v1.2.3-70-g09d2