summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Mauchle <fabian.mauchle@switch.ch>2016-10-16 18:17:21 +0200
committerLinus Nordberg <linus@nordu.net>2017-08-02 10:25:55 +0200
commited9fc3a4a4c46772ffeb6616c260624618a42c81 (patch)
treed37fdd3b4ff82e37a3049681693165cccf14697f
parent3c321320a634e294e22f7d7e638f2add632ade33 (diff)
fix hasdynamicserver
-rw-r--r--radsecproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index f428e6c..6d8ebe5 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -783,7 +783,7 @@ int hasdynamicserver(struct list *srvconfs) {
if (((struct clsrvconf *)entry->data)->dynamiclookupcommand
|| ((struct clsrvconf *)entry->data)->servers->in_use)
#else
- if (((struct clsrvconf *)entry->data)->dynamiclookupcommand)
+ if (((struct clsrvconf *)entry->data)->servers->dynamiclookuparg)
#endif
return 1;
return 0;
@@ -1988,7 +1988,6 @@ errexit:
#if defined ENABLE_EXPERIMENTAL_DYNDISC
server->in_use = 0;
#endif
- conf->servers = NULL;
if (server->dynamiclookuparg) {
removeserversubrealms(realms, conf);
if (dynconffail)
@@ -1996,6 +1995,7 @@ errexit:
else
freeclsrvconf(conf);
}
+ conf->servers = NULL;
freeserver(server, 1);
ERR_remove_state(0);
return NULL;