summaryrefslogtreecommitdiff
path: root/lib/ext
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2019-01-04 20:32:18 +0000
committerDaiki Ueno <ueno@gnu.org>2019-01-04 20:32:18 +0000
commit3a8cf18b985b721842a0243b34d34999264ca643 (patch)
tree3439a8f9c14bd69e7a36f25cf3451b668da47e14 /lib/ext
parentf773730ff9c8e87c8f3f62717ef1408c0e8e135e (diff)
parent8b19287370a056115dc3253d7b7fba7f61fda77b (diff)
downloadgnutls-3a8cf18b985b721842a0243b34d34999264ca643.tar.gz
Merge branch 'tmp-msvc-fixes' into 'master'
ext/pre_shared_key: avoid unnecessary use of VLA for MSVC See merge request gnutls/gnutls!861
Diffstat (limited to 'lib/ext')
-rw-r--r--lib/ext/pre_shared_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext/pre_shared_key.c b/lib/ext/pre_shared_key.c
index c42bd1646b..116cea8d7d 100644
--- a/lib/ext/pre_shared_key.c
+++ b/lib/ext/pre_shared_key.c
@@ -541,7 +541,7 @@ static int server_recv_params(gnutls_session_t session,
psk.ob_ticket_age == 0 &&
psk.identity.size > 0 && psk.identity.size <= MAX_USERNAME_SIZE) {
/* _gnutls_psk_pwd_find_entry() expects 0-terminated identities */
- char identity_str[psk.identity.size + 1];
+ char identity_str[MAX_USERNAME_SIZE + 1];
prf = pskcred->binder_algo;