Merge pull request #328 from mrdeep1/gnutls_psk_username_fix

Fix #321 was not correctly implemented
This commit is contained in:
obgm authored and GitHub committed 2019-04-08 10:23:24 +02:00
commit bab80cff21
1 file changed
+1 -1
+1 -1
View File
@@ -404,7 +404,7 @@ psk_client_callback(gnutls_session_t g_session,
*username = gnutls_malloc(identity_len+1);
if (*username) {
memcpy(*username, identity, identity_len);
username[identity_len] = '\0';
(*username)[identity_len] = '\0';
}
key->data = gnutls_malloc(psk_len);