aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);