Skip to content

Commit

Permalink
Update goodbyedpi.c
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaXser authored Nov 27, 2023
1 parent 069a4d3 commit bcc78bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bcc78bd

Please sign in to comment.