mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
CLEANUP: ssl: check if a transaction exists once before setting it
trivial patch to fix issue #351
Fixes: bc6ca7ccaa ("MINOR: ssl/cli: rework 'set ssl cert' as 'set/commit'")
Reported-by: Илья Шипицин <chipitsine@gmail.com>
Signed-off-by: William Dauchy <w.dauchy@criteo.com>
This commit is contained in:
parent
c0e820c352
commit
c8bb1539cb
1 changed files with 1 additions and 1 deletions
|
|
@ -10468,7 +10468,7 @@ static int cli_parse_set_cert(char **args, char *payload, struct appctx *appctx,
|
|||
/* we succeed, we can save the ckchs in the transaction */
|
||||
|
||||
/* if there wasn't a transaction, update the old ckchs */
|
||||
if (!ckchs_transaction.old_ckchs && !ckchs_transaction.old_ckchs) {
|
||||
if (!ckchs_transaction.old_ckchs) {
|
||||
ckchs_transaction.old_ckchs = appctx->ctx.ssl.old_ckchs;
|
||||
ckchs_transaction.path = appctx->ctx.ssl.path;
|
||||
err = memprintf(&err, "Transaction created for certificate %s!\n", ckchs_transaction.path);
|
||||
|
|
|
|||
Loading…
Reference in a new issue