mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-24 20:31:00 +01:00
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:
parent
1a753a2ead
commit
1212db417b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user