diff options
| author | Alexander Barton <alex@barton.de> | 2013-09-16 00:31:03 +0200 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-09-16 00:31:03 +0200 |
| commit | de3e5fa77ca1b726fe242d869836d3c1c71c2cfb (patch) | |
| tree | 2d67aedd24ff9f60dff3ad7e3f59c445092faafa /src | |
| parent | e8e03519857f26315e5571c10ae1752ba5262f5c (diff) | |
| download | ngircd-de3e5fa77ca1b726fe242d869836d3c1c71c2cfb.tar.gz ngircd-de3e5fa77ca1b726fe242d869836d3c1c71c2cfb.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/ngircd.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/ngircd/ngircd.c b/src/ngircd/ngircd.c index f0cb1504..d76b47d4 100644 --- a/src/ngircd/ngircd.c +++ b/src/ngircd/ngircd.c @@ -264,7 +264,7 @@ main(int argc, const char *argv[]) /* Initialize the "main program": chroot environment, user and * group ID, ... */ if (!NGIRCd_Init(NGIRCd_NoDaemon)) { - Log(LOG_ALERT, "Fatal: Initialization failed"); + Log(LOG_ALERT, "Fatal: Initialization failed, exiting!"); exit(1); } @@ -673,9 +673,10 @@ NGIRCd_Init(bool NGIRCd_NoDaemon) } /* SSL initialization */ - if (!ConnSSL_InitLibrary()) - Log(LOG_WARNING, - "Error during SSL initialization, continuing without SSL ..."); + if (!ConnSSL_InitLibrary()) { + Log(LOG_ERR, "Error during SSL initialization!"); + goto out; + } /* Change root */ if (Conf_Chroot[0]) { |