From 9aff90b466ad3a1ca25abdeef1bb4aaf3549877f Mon Sep 17 00:00:00 2001 From: bol-van Date: Thu, 26 Dec 2024 13:46:12 +0300 Subject: [PATCH] nfqws: allow partial TLS for relative markers --- nfq/protocol.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nfq/protocol.c b/nfq/protocol.c index 1c1142f..1817aa0 100644 --- a/nfq/protocol.c +++ b/nfq/protocol.c @@ -2,6 +2,8 @@ #include "protocol.h" #include "helpers.h" +#include "params.h" + #include #include #include @@ -507,7 +509,7 @@ size_t TLSPos(uint8_t posmarker, int16_t pos, const uint8_t *data, size_t sz) case PM_HOST_MIDSLD: case PM_HOST_ENDSLD: case PM_SNI_EXT: - if (TLSFindExt(data,sz,0,&ext,&elen,false)) + if (TLSFindExt(data,sz,0,&ext,&elen,TLS_PARTIALS_ENABLE)) { if (posmarker==PM_SNI_EXT) {