From 0096bb6b85682e2498b89485468227b61c068480 Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Sat, 25 May 2024 04:13:38 +0000 Subject: [PATCH] fixes --- tunnels/client/protobuf/protobuf_client.c | 2 +- tunnels/server/protobuf/protobuf_server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tunnels/client/protobuf/protobuf_client.c b/tunnels/client/protobuf/protobuf_client.c index 22cb640e..a0ed5032 100644 --- a/tunnels/client/protobuf/protobuf_client.c +++ b/tunnels/client/protobuf/protobuf_client.c @@ -78,7 +78,7 @@ static void downStream(tunnel_t *self, context_t *c) while (true) { - if (bufferStreamLen(bstream) < 2) + if (bufferStreamLen(bstream) < 3) { destroyContext(c); return; diff --git a/tunnels/server/protobuf/protobuf_server.c b/tunnels/server/protobuf/protobuf_server.c index ba361682..a423752e 100644 --- a/tunnels/server/protobuf/protobuf_server.c +++ b/tunnels/server/protobuf/protobuf_server.c @@ -49,7 +49,7 @@ static void upStream(tunnel_t *self, context_t *c) while (true) { - if (bufferStreamLen(bstream) < 2) + if (bufferStreamLen(bstream) < 3) { destroyContext(c); return;