From 64232ddc4cf67ccc75683a42a322e596b3611069 Mon Sep 17 00:00:00 2001 From: Jed Lu Date: Tue, 22 Sep 2020 07:39:24 +0100 Subject: [PATCH] sspc: http map proxying fixes --- lib/secure-streams/secure-streams-serialize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/secure-streams/secure-streams-serialize.c b/lib/secure-streams/secure-streams-serialize.c index 23b53288d..021945e43 100644 --- a/lib/secure-streams/secure-streams-serialize.c +++ b/lib/secure-streams/secure-streams-serialize.c @@ -262,7 +262,7 @@ int lws_ss_serialize_state(struct lws_dsh *dsh, lws_ss_constate_t state, lws_ss_tx_ordinal_t ack) { - uint8_t pre[8]; + uint8_t pre[12]; int n = 4; lwsl_info("%s: %s, ord 0x%x\n", __func__, lws_ss_state_name(state), @@ -273,7 +273,7 @@ lws_ss_serialize_state(struct lws_dsh *dsh, lws_ss_constate_t state, if (state > 255) { pre[2] = 8; - lws_ser_wu32be(&pre[3], ack); + lws_ser_wu32be(&pre[3], state); n = 7; } else { pre[2] = 5;