mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-03 16:36:20 +03:00
Merge pull request #328 from mrdeep1/gnutls_psk_username_fix
Fix #321 was not correctly implemented
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user