From: Alexander Barton Date: Fri, 17 Jul 2009 12:55:30 +0000 (+0200) Subject: Fix return code of Conf_EnableServer() X-Git-Tag: rel-15-rc1~44 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63cbc6cd4262971d0ef795d2404bc545413e159a;p=ngircd-alex.git Fix return code of Conf_EnableServer() Conf_EnableServer() only reports success if all required variables, including host name and port, are set for the specific server. --- diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index a3c9afec..eccf13cc 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -400,7 +400,7 @@ Conf_EnableServer( const char *Name, UINT16 Port ) /* Gotcha! Set port and enable server: */ Conf_Server[i].port = Port; Conf_Server[i].flags &= ~CONF_SFLAG_DISABLED; - return true; + return (Conf_Server[i].port && Conf_Server[i].host[0]); } } return false;