commit - 58a4dae56dd34e41b32dd3e5cede03a7ea5c7bb5
commit + 8927700b221ba3cffbde50005319868efbdb1f3e
blob - e1fb73be85244cec08fd4b0506805554d307fb6f
blob + db91a578604dd29d8b7752b0d431fb2cbff4e224
--- src/ngircd/conf.c
+++ src/ngircd/conf.c
if( strcasecmp( Var, "Port" ) == 0 ) {
/* Port to which this server should connect */
port = atol( Arg );
- if( port > 0 && port < 0xFFFF )
+ if (port >= 0 && port < 0xFFFF)
New_Server.port = (UINT16)port;
else
- Config_Error( LOG_ERR, "%s, line %d (section \"Server\"): Illegal port number %ld!",
- NGIRCd_ConfFile, Line, port );
+ Config_Error(LOG_ERR,
+ "%s, line %d (section \"Server\"): Illegal port number %ld!",
+ NGIRCd_ConfFile, Line, port );
return;
}
#ifdef SSL_SUPPORT