summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");