From 20886264fecba2983b8c4a1b4d3f5c3011f413c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20R=C3=BChsen?= Date: Fri, 24 Aug 2018 16:34:14 +0200 Subject: [PATCH] Use gnutls_strdup() instead of strdup() in library code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Tim Rühsen --- lib/ext/srp.c | 4 ++-- lib/priority.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/ext/srp.c b/lib/ext/srp.c index 73c7936655..fdbc8e7fb4 100644 --- a/lib/ext/srp.c +++ b/lib/ext/srp.c @@ -158,13 +158,13 @@ _gnutls_srp_send_params(gnutls_session_t session, goto cleanup; } - priv->username = strdup(cred->username); + priv->username = gnutls_strdup(cred->username); if (priv->username == NULL) { gnutls_assert(); goto cleanup; } - priv->password = strdup(cred->password); + priv->password = gnutls_strdup(cred->password); if (priv->password == NULL) { gnutls_assert(); goto cleanup; diff --git a/lib/priority.c b/lib/priority.c index 00681c53e8..6a93545cdf 100644 --- a/lib/priority.c +++ b/lib/priority.c @@ -1154,7 +1154,7 @@ size_t n, n2 = 0, line_size; ret[n] = 0; } } else { - return strdup(p); + return gnutls_strdup(p); } finish: -- 2.47.3