Update goodbyedpi.c

This commit is contained in:
SashaXser 2023-11-01 20:52:02 +04:00 committed by GitHub
parent 6d9132c339
commit 23ed52c9f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -213,7 +213,7 @@ static void add_maxpayloadsize_str(unsigned short maxpayload) {
const char *maxpayloadsize_str = "and (tcp.PayloadLength ? tcp.PayloadLength < %hu or tcp.Payload32[0] == 0x47455420 or tcp.Payload32[0] == 0x504F5354 : true)";
char *addfilter;
asprintf(&addfilter, "%s", maxpayloadsize_str, maxpayload);
asprintf(&addfilter, maxpayloadsize_str, maxpayload);
char *newstr = repl_str(filter_string, MAXPAYLOADSIZE_TEMPLATE, addfilter);
free(filter_string);
@ -222,7 +222,6 @@ static void add_maxpayloadsize_str(unsigned short maxpayload) {
}
static void finalize_filter_strings() {
char *newstr = repl_str(filter_string, IPID_TEMPLATE, "");
free(filter_string);