From 999b1f974ed2262bea9799548d939feea5382131 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Tue, 12 Apr 2022 16:36:22 +0800 Subject: [PATCH] =?UTF-8?q?TSG-10184=20=E4=BF=AE=E5=A4=8D=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AF=81=E4=B9=A6=E9=93=BE=E5=88=A4=E6=96=AD=E7=9A=84?= =?UTF-8?q?=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- program/src/cert_session.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/program/src/cert_session.cpp b/program/src/cert_session.cpp index c5f81d6..0869167 100644 --- a/program/src/cert_session.cpp +++ b/program/src/cert_session.cpp @@ -1032,9 +1032,7 @@ void keyring_table_free_cb(int __attribute__((__unused__))table_id, MAAT_PLUGIN_ long __attribute__((__unused__))argl, void __attribute__((__unused__))*argp) { if (*ad == NULL) - { - return; - } + return; struct pxy_obj_keyring* pxy_obj=(struct pxy_obj_keyring*)(*ad); atomic64_dec(&pxy_obj->ref_cnt); if (atomic64_read(&pxy_obj->ref_cnt) == 0) @@ -1315,12 +1313,9 @@ web_json_record_array_add_string(char **chain) sample_array = json_object_new_array(); if (sample_array == NULL) - { - goto finish; - } + goto finish; - for(i = 0; strlen(chain[i]) > 0; i++) - { + for(i = 0; chain[i] != '\0'; i++){ json_object_array_add(sample_array, json_object_new_string(chain[i])); } finish: