From fa46a3e1ff795fbbdc177fc290f77a5cacfbd32c Mon Sep 17 00:00:00 2001 From: reenoo Date: Thu, 25 Dec 2003 14:03:40 +0000 Subject: [PATCH] exit when unable to read config file --- server/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/main.c b/server/main.c index 32543aa..ad6deba 100644 --- a/server/main.c +++ b/server/main.c @@ -400,7 +400,8 @@ process_configfile ( char *configfile ) /* Read server settings*/ if( config_read_file( configfile ) != 0 ) { - report( RPT_WARNING, "Could not read config file: %s", configfile ); + report( RPT_CRIT, "Could not read config file: %s", configfile ); + return -1; } if( bind_port == UNSET_INT )