BUILD: ssl_ckch: Fix build error about a possible uninitialized value

A build error is reported about the path variable in the switch statement on
the commit type, in cli_io_handler_commit_cafile_crlfile() function. The
enum contains only 2 values, but a default clause has been added to return an
error to make GCC happy.

This patch must be backported as far as 2.5.
This commit is contained in:
Christopher Faulet 2022-06-03 16:37:31 +02:00
parent 88041b35c3
commit ea2c8c6ba7
1 changed files with 2 additions and 0 deletions

View File

@ -2709,6 +2709,8 @@ static int cli_io_handler_commit_cafile_crlfile(struct appctx *appctx)
case CAFILE_CRL:
path = crlfile_transaction.path;
break;
default:
goto error;
}
while (1) {