From 18fa5244801e7c61c86c46691e397bb679356934 Mon Sep 17 00:00:00 2001 From: EgorWeders <157705588+EgorWeders@users.noreply.github.com> Date: Wed, 21 Aug 2024 06:42:49 +0000 Subject: [PATCH] Fixed return value in procedure --- src/goodbyedpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index f5f6cbff..267b4e5f 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -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) @@ -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); @@ -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);