Update goodbyedpi.c

This commit is contained in:
SashaXser 2023-11-14 11:50:01 +04:00 committed by GitHub
parent 7ae4bb0125
commit 8567dc6685
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 8 deletions

View File

@ -222,18 +222,17 @@ static void add_maxpayloadsize_str(unsigned short maxpayload) {
static void finalize_filter_strings() {
char *tmpstr;
char *newstr, *newstr2;
tmpstr = strdup(filter_string);
str_replace(tmpstr, IPID_TEMPLATE, "");
str_replace(tmpstr, MAXPAYLOADSIZE_TEMPLATE, "");
newstr2 = repl_str(filter_string, IPID_TEMPLATE, "");
newstr = repl_str(newstr2, MAXPAYLOADSIZE_TEMPLATE, "");
free(filter_string);
filter_string = tmpstr;
free(newstr2);
filter_string = newstr;
tmpstr = strdup(filter_passive_string);
str_replace(tmpstr, IPID_TEMPLATE, "");
newstr = repl_str(filter_passive_string, IPID_TEMPLATE, "");
free(filter_passive_string);
filter_passive_string = tmpstr;
filter_passive_string = newstr;
}
static char* dumb_memmem(const char* haystack, unsigned int hlen,