From bcc78bdf7a4b0a187698be08d35608fabf2626e6 Mon Sep 17 00:00:00 2001 From: SashaXser <24498484+SashaXser@users.noreply.github.com> Date: Mon, 27 Nov 2023 21:38:21 +0400 Subject: [PATCH] Update goodbyedpi.c --- src/goodbyedpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index 0da5f38..58b6f1d 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -426,9 +426,8 @@ static inline void change_window_size(const PWINDIVERT_TCPHDR ppTcpHdr, unsigned } /* HTTP method end without trailing space */ -static PVOID find_http_method_end(const char *pkt, unsigned int http_frag, int *is_fragmented) { +static PVOID find_http_method_end(const char *pkt, size_t pkt_length, unsigned int http_frag, int *is_fragmented) { unsigned int i; - unsigned int pkt_length = strlen(pkt); for (i = 0; i<(sizeof(http_methods) / sizeof(*http_methods)); i++) { unsigned int method_length = strlen(http_methods[i]); if (strncasecmp(pkt, http_methods[i], method_length) == 0) {