summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2022-04-12 17:52:57 +0800
committerfengweihao <[email protected]>2022-04-12 17:52:57 +0800
commit2eeae529d03a3911726f713c4dedacb98a8ff5f9 (patch)
treeb4955db97e5cbd37263c57394169cbb29ae16d28 /program
parent999b1f974ed2262bea9799548d939feea5382131 (diff)
bugfix: 修复Rocky Linux8.5编译失败v2.2.2-20220412
Diffstat (limited to 'program')
-rw-r--r--program/src/cert_session.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/src/cert_session.cpp b/program/src/cert_session.cpp
index 0869167..f541dfb 100644
--- a/program/src/cert_session.cpp
+++ b/program/src/cert_session.cpp
@@ -1032,7 +1032,10 @@ void keyring_table_free_cb(int __attribute__((__unused__))table_id, MAAT_PLUGIN_
long __attribute__((__unused__))argl, void __attribute__((__unused__))*argp)
{
if (*ad == NULL)
+ {
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,7 +1318,7 @@ web_json_record_array_add_string(char **chain)
if (sample_array == NULL)
goto finish;
- for(i = 0; chain[i] != '\0'; i++){
+ for(i = 0; chain[i] != NULL; i++){
json_object_array_add(sample_array, json_object_new_string(chain[i]));
}
finish: