From 23a3c7f5f50d7285bfcfe0b761e3c870b51d3d5b Mon Sep 17 00:00:00 2001 From: Hideki Miyazaki Date: Fri, 4 Jun 2021 10:15:11 +0900 Subject: [PATCH] fixed no-termination --- src/ssl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 9eaf2980f..98c6626db 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -11991,7 +11991,7 @@ static char* buildEnabledCipherList(WOLFSSL_CTX* ctx, Suites* suites, } } - len += listsz + 1; + len += listsz + 2; /* build string */ if (len > 0) { @@ -12010,8 +12010,9 @@ static char* buildEnabledCipherList(WOLFSSL_CTX* ctx, Suites* suites, /* always tls13 suites in the head position */ XSTRNCPY(locallist, list, len); locallist += listsz; + *locallist++ = ':'; *locallist = 0; - len -= listsz; + len -= listsz + 1; } for(idx = 0; idx < suites->suiteSz; idx++) {