Skip to content

Commit

Permalink
Fixed return value in procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorWeders committed Aug 21, 2024
1 parent d772a7f commit 18fa524
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static void add_filter_str(int proto, int port) {
char *new_filter = malloc(new_filter_size);

if (!new_filter)
return FALSE;
return;

strcpy(new_filter, current_filter);
if (proto == IPPROTO_UDP)
Expand All @@ -225,7 +225,7 @@ static void add_ip_id_str(int id) {
char *addfilter = malloc(strlen(ipid) + 16);

if (!addfilter)
return FALSE;
return ;

sprintf(addfilter, ipid, id);

Expand All @@ -248,7 +248,7 @@ static void add_maxpayloadsize_str(unsigned short maxpayload) {
char *addfilter = malloc(strlen(maxpayloadsize_str) + 16);

if (!addfilter)
return FALSE;
return ;

sprintf(addfilter, maxpayloadsize_str, maxpayload);

Expand Down

0 comments on commit 18fa524

Please sign in to comment.