if (sc->szPrivateKeyFile[j] != NULL)
apr_cpystrn(szPath, sc->szPrivateKeyFile[j++], sizeof(szPath));
+ if (sc->szPrivateKeyFile[j] == NULL) {
+ ssl_log(pServ, SSL_LOG_ERROR,
+ "Init: Server %s should be SSL-aware but "
+ "too few private key files were specified "
+ "[Hint: SSLCertificateKeyFile]", cpVHostID);
+ ssl_die();
+ }
+
/*
* Try to read the private key file with the help of
* the callback function which serves the pass
nPassPhraseDialogCur = 0;
bPassPhraseDialogOnce = TRUE;
- pPrivateKey = NULL;
+ pPrivateKey = NULL;
for (;;) {
/*