aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2022-02-23 21:37:52 +0100
committerLuca Deri <deri@ntop.org>2022-02-23 21:37:52 +0100
commit16ed0fd3f80141e1081ac315822abf34cfd61158 (patch)
treef6b94a3835c157c7cd007361d57c5eba6fd945ff /src
parentd506a0e12f7e491626de27d93f34fbfa9b36530e (diff)
Replaced strdup with ndpi_strup
Diffstat (limited to 'src')
-rw-r--r--src/lib/ndpi_main.c4
1 files changed, 2 insertions, 2 deletions
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);