summaryrefslogtreecommitdiff
path: root/lib/ext
diff options
context:
space:
mode:
authorTim Rühsen <tim.ruehsen@gmx.de>2018-08-24 16:34:14 +0200
committerTim Rühsen <tim.ruehsen@gmx.de>2018-08-24 16:34:14 +0200
commit20886264fecba2983b8c4a1b4d3f5c3011f413c5 (patch)
treefcb94b808858195f24a71e3e021abdec5253fd41 /lib/ext
parent344b2cc8f68cdde1744198034276d0e6720b1d19 (diff)
downloadgnutls-20886264fecba2983b8c4a1b4d3f5c3011f413c5.tar.gz
Use gnutls_strdup() instead of strdup() in library codetmp-strdup
Signed-off-by: Tim Rühsen <tim.ruehsen@gmx.de>
Diffstat (limited to 'lib/ext')
-rw-r--r--lib/ext/srp.c4
1 files changed, 2 insertions, 2 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;