aboutsummaryrefslogtreecommitdiff
path: root/json-rpc-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'json-rpc-shell.c')
-rw-r--r--json-rpc-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index 716e74c..7d104a2 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -1832,7 +1832,7 @@ backend_ws_send_control (struct ws_context *self,
static bool
backend_ws_fail (struct ws_context *self, enum ws_status reason)
{
- uint8_t payload[2] = { reason << 8, reason };
+ uint8_t payload[2] = { reason >> 8, reason };
(void) backend_ws_send_control (self, WS_OPCODE_CLOSE,
payload, sizeof payload);