diff options
author | venaas <venaas> | 2007-10-11 09:34:26 +0000 |
---|---|---|
committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2007-10-11 09:34:26 +0000 |
commit | 7bc2eef3286ec71909e3cc97397e1e61bdd36e29 (patch) | |
tree | 250fa0879bb2d16afa3879191c99c86dfdf6dc5d | |
parent | 8fc8fb12dc9534df6c2bb34b7f2e7349546c396c (diff) |
give an error when options that should not be repeated are
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.0@183 e88ac4ed-0b26-0410-9574-a7f39faa03bf
-rw-r--r-- | radsecproxy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index dd228c7..5e8af42 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2106,6 +2106,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); break; case CONF_CBK: |