1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-09-08 21:45:58 +00:00

"ServerName" is checked better now: a dot (".") is required.

This commit is contained in:
Alexander Barton
2003-04-29 12:36:09 +00:00
parent e55399c667
commit e541da2a8f
3 changed files with 17 additions and 4 deletions

View File

@@ -14,7 +14,7 @@
#include "portab.h"
static char UNUSED id[] = "$Id: conf.c,v 1.58 2003/04/27 11:46:52 alex Exp $";
static char UNUSED id[] = "$Id: conf.c,v 1.59 2003/04/29 12:36:09 alex Exp $";
#include "imp.h"
#include <assert.h>
@@ -837,6 +837,17 @@ Validate_Config( BOOLEAN Configtest )
exit( 1 );
}
}
if( ! strchr( Conf_ServerName, '.' ))
{
/* No dot in server name! */
Config_Error( LOG_ALERT, "Invalid server name configured in \"%s\" ('ServerName'): Dot missing!", NGIRCd_ConfFile );
if( ! Configtest )
{
Config_Error( LOG_ALERT, "%s exiting due to fatal errors!", PACKAGE_NAME );
exit( 1 );
}
}
#ifdef STRICT_RFC
if( ! Conf_ServerAdminMail[0] )