commit 63cbc6cd4262971d0ef795d2404bc545413e159a from: Alexander Barton date: Fri Jul 17 12:55:30 2009 UTC 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. commit - b3cacf86df000ed22734b4a5e06d7d7eb8ae6ffa commit + 63cbc6cd4262971d0ef795d2404bc545413e159a blob - a3c9afecf097c88de0fc55e9b1ac44aebb9c25b0 blob + eccf13cc3edec2a78d533287c2d92a18ce2345ce --- src/ngircd/conf.c +++ 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;