From 16ed0fd3f80141e1081ac315822abf34cfd61158 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Wed, 23 Feb 2022 21:37:52 +0100 Subject: Replaced strdup with ndpi_strup --- src/lib/ndpi_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 72374d2b5..37d73172c 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -3181,9 +3181,9 @@ int ndpi_add_trusted_issuer_dn(struct ndpi_detection_module_struct *ndpi_str, ch if((quote = strchr(buf, '"')) != NULL) quote[0] = '\0'; - head->value = strdup(buf); + head->value = ndpi_strdup(buf); } else - head->value = strdup(dn); + head->value = ndpi_strdup(dn); if(head->value == NULL) { ndpi_free(head); -- cgit v1.2.3