diff options
author | Fabian Mauchle <fabian.mauchle@switch.ch> | 2016-10-16 18:17:21 +0200 |
---|---|---|
committer | Fabian Mauchle <fabian.mauchle@switch.ch> | 2016-10-16 18:17:21 +0200 |
commit | d768c83601aff27c0bdeb5192d636145fc1a5377 (patch) | |
tree | 33afa178166361b41c9c0401469c822e02387707 /radsecproxy.c | |
parent | eea3b3fc51fc073ef3d928316e9ad0887fb73f07 (diff) |
fix hasdynamicserver
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c index 815e927..954e464 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) @@ -1993,6 +1992,7 @@ errexit: else freeclsrvconf(conf); } + conf->servers = NULL; freeserver(server, 1); ERR_remove_state(0); return NULL; |