BUG/MINOR: ssl/cli: fix looking up for a bundle
If we want a bundle but we didn't find a bundle, we shouldn't try to
apply the changes.
diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index f8e60c3..e537e61 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -9778,7 +9778,7 @@
char *err = NULL;
int i;
int found = 0;
- int bundle = -1;
+ int bundle = -1; /* TRUE if >= 0 (ckch index) */
int errcode = 0;
if (!*args[3] || !payload)
@@ -9805,6 +9805,10 @@
goto end;
}
+ /* If we want a bundle but this is not a bundle */
+ if (bundle >= 0 && ckchs->multi == 0)
+ continue;
+
if (bundle < 0)
ckch = ckchs->ckch;
else