summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/fail_over.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
index b719dea8..ada5b57f 100644
--- a/src/providers/fail_over.c
+++ b/src/providers/fail_over.c
@@ -1122,8 +1122,11 @@ fo_get_server_port(struct fo_server *server)
const char *fo_get_server_name(struct fo_server *server)
{
- if (!server->common && fo_is_srv_lookup(server)) {
- return "SRV lookup meta-server";
+ if (!server->common) {
+ if (fo_is_srv_lookup(server)) {
+ return "SRV lookup meta-server";
+ }
+ return "unknown name";
}
return server->common->name;