From 2744f2460c4cca9a6cbe2983715c8b5bd7eee4a0 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Fri, 18 Nov 2022 18:50:20 +0800 Subject: [PATCH] =?UTF-8?q?TSG-12750=20keyring=3D0=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=E8=8E=B7=E5=8F=96=E9=94=99=E8=AF=AF?= 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(-) 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!!!");