From 944f77756de661c1fff4a6da00c62d56fb143efc Mon Sep 17 00:00:00 2001 From: venaas Date: Mon, 12 Jan 2009 13:30:33 +0000 Subject: don't exit just because of bad dynamic config git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@456 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/radsecproxy.c b/radsecproxy.c index 325acbf..a184eea 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2907,8 +2907,10 @@ int confserver_cb(struct gconffile **cf, void *arg, char *block, char *opt, char } } - if (!conftype) - debugx(1, DBG_ERR, "error in block %s, option type missing", block); + if (!conftype) { + debug(DBG_ERR, "error in block %s, option type missing", block); + goto errexit; + } conf->type = protoname2int(conftype); if (conf->type == 255) { debug(DBG_ERR, "error in block %s, unknown transport %s", block, conftype); -- cgit v1.2.3