summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-10-11 09:36:22 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-10-11 09:36:22 +0000
commit6ca7d05bc4dffe7308f5c6257a8f23a17ae9c164 (patch)
treed1507f5cbb4be5bc7eda8909cbda3fb76ee9506f /radsecproxy.c
parent326e0be389ddb33141527dd0f02e5db2511510f5 (diff)
give an error when options that should not be repeated are
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@184 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index ad89cb3..8997803 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -2511,6 +2511,8 @@ void getgeneralconfig(FILE *f, char *block, ...) {
debug(DBG_DBG, "getgeneralconfig: block %s: %s = %s", block, opt, val);
else
debug(DBG_DBG, "getgeneralconfig: %s = %s", opt, val);
+ if (*str)
+ debugx(1, DBG_ERR, "configuration error, option %s already set to %s", opt, *str);
*str = stringcopy(val, 0);
if (!*str)
debugx(1, DBG_ERR, "malloc failed");