Don't ignore SSL-related errors during startup
Without this patch, ngIRCd ignores SSL-related messages and continues to start up but only listens on plain text communication ports -- and this most probably isn't what the administrator wanted ... Closes bug #163.
This commit is contained in:
parent
e8e0351985
commit
de3e5fa77c
@ -264,7 +264,7 @@ main(int argc, const char *argv[])
|
|||||||
/* Initialize the "main program": chroot environment, user and
|
/* Initialize the "main program": chroot environment, user and
|
||||||
* group ID, ... */
|
* group ID, ... */
|
||||||
if (!NGIRCd_Init(NGIRCd_NoDaemon)) {
|
if (!NGIRCd_Init(NGIRCd_NoDaemon)) {
|
||||||
Log(LOG_ALERT, "Fatal: Initialization failed");
|
Log(LOG_ALERT, "Fatal: Initialization failed, exiting!");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -673,9 +673,10 @@ NGIRCd_Init(bool NGIRCd_NoDaemon)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* SSL initialization */
|
/* SSL initialization */
|
||||||
if (!ConnSSL_InitLibrary())
|
if (!ConnSSL_InitLibrary()) {
|
||||||
Log(LOG_WARNING,
|
Log(LOG_ERR, "Error during SSL initialization!");
|
||||||
"Error during SSL initialization, continuing without SSL ...");
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
/* Change root */
|
/* Change root */
|
||||||
if (Conf_Chroot[0]) {
|
if (Conf_Chroot[0]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user