修改memset_s函数语法错误CIPHER_LEN

(cherry picked commit from <gitee.com//opengauss/openGauss-server/commit/effc9c0131e042bdbc15f855febeb56d7b1b0add>
This commit is contained in:
zhangting
2024-09-06 17:51:48 +08:00
committed by zhangtingtingting
parent 56326674c3
commit 864a80feeb

View File

@ -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