Skip to content
Permalink
Browse files

Client crashes in gnutls psk setup

src/coap_gnutls.c:

Correct typo when null terminating username.
  • Loading branch information...
mrdeep1 committed Mar 31, 2019
1 parent 0158bc4 commit d6562e8b5923b0a08cfecebe9abc341f9fede63f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/coap_gnutls.c
@@ -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);

0 comments on commit d6562e8

Please sign in to comment.
You can’t perform that action at this time.