Update goodbyedpi.c
This commit is contained in:
parent
069a4d3e30
commit
bcc78bdf7a
|
@ -426,9 +426,8 @@ static inline void change_window_size(const PWINDIVERT_TCPHDR ppTcpHdr, unsigned
|
||||||
}
|
}
|
||||||
|
|
||||||
/* HTTP method end without trailing space */
|
/* 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 i;
|
||||||
unsigned int pkt_length = strlen(pkt);
|
|
||||||
for (i = 0; i<(sizeof(http_methods) / sizeof(*http_methods)); i++) {
|
for (i = 0; i<(sizeof(http_methods) / sizeof(*http_methods)); i++) {
|
||||||
unsigned int method_length = strlen(http_methods[i]);
|
unsigned int method_length = strlen(http_methods[i]);
|
||||||
if (strncasecmp(pkt, http_methods[i], method_length) == 0) {
|
if (strncasecmp(pkt, http_methods[i], method_length) == 0) {
|
||||||
|
|
Loading…
Reference in New Issue