From: Christopher Faulet Date: Fri, 3 Jun 2022 07:17:09 +0000 (+0200) Subject: CLEANUP: ssl_ckch: Use corresponding enum for commit_cacrlfile_ctx.cafile_type X-Git-Tag: v2.7-dev1~115 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14df913400f72d2b863ae2d684ee420b6476fbfe;p=thirdparty%2Fhaproxy.git CLEANUP: ssl_ckch: Use corresponding enum for commit_cacrlfile_ctx.cafile_type There is an enum to determine the entry entry type when changes are committed on a CA/CRL entry. So use it in the service context instead of an integer. This patch may help to fix issue #1731. --- diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index ccd02ffcd4..899eaa626b 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -126,7 +126,7 @@ struct commit_cacrlfile_ctx { struct cafile_entry *new_crlfile_entry; struct ckch_inst_link *next_ckchi_link; struct ckch_inst *next_ckchi; - int cafile_type; /* either CA or CRL, depending on the current command */ + enum cafile_type cafile_type; /* either CA or CRL, depending on the current command */ char *err; enum { CACRL_ST_INIT = 0,