From 2744f2460c4cca9a6cbe2983715c8b5bd7eee4a0 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Fri, 18 Nov 2022 18:50:20 +0800 Subject: TSG-12750 keyring=0时,证书获取错误 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- program/src/cert_session.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'program') diff --git a/program/src/cert_session.cpp b/program/src/cert_session.cpp index 3ad22e6..fe62a3b 100644 --- a/program/src/cert_session.cpp +++ b/program/src/cert_session.cpp @@ -1150,14 +1150,12 @@ static int x509_online_append(struct x509_object_ctx *def, struct tfe_http_reque struct config_bucket_t *rte = cfg_instanec(); - if (is_valid == 1 && keyring_id == 0) keyring_id = 1; - struct pxy_obj_keyring *pxy_obj = get_obj_for_id(keyring_id); if (NULL == pxy_obj) { if (!rte->local_debug) { - if (1==is_valid) pxy_obj = get_obj_for_id(1); + pxy_obj = get_obj_for_id(keyring_id); if (pxy_obj == NULL) { mesa_runtime_log(RLOG_LV_FATAL, MODULE_NAME, "Get the default keypair failed, EXIT!!!"); -- cgit v1.2.3