From effc9c0131e042bdbc15f855febeb56d7b1b0add Mon Sep 17 00:00:00 2001 From: zhangting Date: Fri, 6 Sep 2024 17:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9memset=5Fs=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AFCIPHER=5FLEN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/backend/libpq/be-secure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/backend/libpq/be-secure.cpp b/src/common/backend/libpq/be-secure.cpp index 9504fa20c..7121597d2 100644 --- a/src/common/backend/libpq/be-secure.cpp +++ b/src/common/backend/libpq/be-secure.cpp @@ -1403,7 +1403,7 @@ static void init_server_ssl_passwd(SSL_CTX* pstContext, bool enc) #endif char *keyfile; errno_t rc = 0; - rc = memset_s(u_sess->libpq_cxt.server_key, CIPHER_H + 1, 0, CIPHER_H + 1); + rc = memset_s(u_sess->libpq_cxt.server_key, CIPHER_LEN + 1, 0, CIPHER_LEN + 1); securec_check(rc, "\0", "\0"); #ifdef USE_TASSL