diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 98b3ad8b7..7b2f1021c 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -10327,6 +10327,8 @@ static int cli_parse_set_cert(char **args, char *payload, struct appctx *appctx, break; } } + if (bundle < 0) /* we didn't find a bundle extension */ + break; } #else /* bundles are not supported here, so we don't need to lookup again */