summaryrefslogtreecommitdiff
path: root/lib/ext/srp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ext/srp.c')
-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;