We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 035ce61 commit 4f897e3Copy full SHA for 4f897e3
1 file changed
src/main/realms.c
@@ -1640,6 +1640,11 @@ static int server_pool_add(realm_config_t *rc,
1640
}
1641
1642
1643
+ if (!home) {
1644
+ ERROR("Failed to find home server %s", value);
1645
+ goto error;
1646
+ }
1647
+
1648
if (home->affinity) {
1649
if (home->virtual_server) {
1650
ERROR("Home server %s is a virtual server, and cannot be used with 'affinity'", home->name);
@@ -1669,11 +1674,6 @@ static int server_pool_add(realm_config_t *rc,
1669
1674
pool->affinity_group[home->affinity] = home;
1670
1675
1671
1676
1672
- if (!home) {
1673
- ERROR("Failed to find home server %s", value);
- goto error;
- }
-
1677
if (do_print) cf_log_info(cs, "\thome_server = %s", home->name);
1678
pool->servers[num_home_servers++] = home;
1679
} /* loop over home_server's */
0 commit comments