BUG/MINOR: ssl/cli: cleanup on cli_parse_set_cert error

Since commit 90b098c ("BUG/MINOR: cli: don't call the kw->io_release if
kw->parse failed"), the io_release() callback is not called anymore when
the parse() failed. Call it directly on the error path of the
cli_parse_set_cert() function.
This commit is contained in:
William Lallemand 2019-10-28 14:26:56 +01:00 committed by William Lallemand
parent 1a753a2ead
commit 1212db417b

View File

@ -10291,6 +10291,7 @@ end:
if (errcode & ERR_CODE) {
/* we release the spinlock and free the unused structures in the release function */
cli_release_set_cert(appctx);
return cli_dynerr(appctx, memprintf(&err, "%sCan't update %s!\n", err ? err : "", args[3]));
} else
return 0;