summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--radsecproxy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 815e927..4ab6fba 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -780,7 +780,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;
@@ -1985,7 +1985,6 @@ errexit:
#if defined ENABLE_EXPERIMENTAL_DYNDISC
server->in_use = 0;
#endif
- conf->servers = NULL;
if (server->dynamiclookuparg) {
removeserversubrealms(realms, conf);
if (dynconffail)