diff --git a/src/util.c b/src/util.c index c1f12769..59f52796 100644 --- a/src/util.c +++ b/src/util.c @@ -322,7 +322,7 @@ static int get_pin_file(P11PROV_CTX *ctx, const char *str, size_t len, #define COPY_STRUCT_MEMBER(dst, src, _name) \ if ((src)->_name) { \ - (dst)->_name = strdup((src)->_name); \ + (dst)->_name = OPENSSL_strdup((src)->_name); \ if (!(dst)->_name) { \ p11prov_uri_free((dst)); \ return NULL; \