Skip to content

Commit

Permalink
Update goodbyedpi.c
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaXser committed Jul 26, 2024
1 parent 95de2ce commit 43cb80e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,7 @@ static char *filter_passive_string = NULL;
static void *memmem(const void *haystack, size_t haystack_len,
const void * const needle, const size_t needle_len)
{
if (haystack == NULL) return NULL; // or assert(haystack != NULL);
if (haystack_len == 0) return NULL;
if (needle == NULL) return NULL; // or assert(needle != NULL);
if (needle_len == 0) return NULL;
if (needle_len > haystack_len) return NULL;

for (const char *h = haystack;
haystack_len >= needle_len;
Expand Down

0 comments on commit 43cb80e

Please sign in to comment.