When trying to update a certificate <file>.{rsa,ecdsa,dsa}, but this one
does not exist and if <file> was used as a regular file in the
configuration, the error was ambiguous. Correct it so we can return a
certificate not found error.
errcode |= ERR_ALERT | ERR_FATAL;
goto end;
}
- /* If we want a bundle but this is not a bundle */
- /* note that it should never happen */
- if (bundle >= 0 && find_ckchs[i]->multi == 0)
- goto end;
+ /* If we want a bundle but this is not a bundle
+ * example: When you try to update <file>.rsa, but
+ * <file> is a regular file */
+ if (bundle >= 0 && find_ckchs[i]->multi == 0) {
+ find_ckchs[i] = NULL;
+ break;
+ }
}
#if HA_OPENSSL_VERSION_NUMBER >= 0x1000200fL
{