diff options
-rw-r--r-- | src/providers/fail_over.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index 81fc45ce..12b6c378 100644 --- a/src/providers/fail_over.c +++ b/src/providers/fail_over.c @@ -564,8 +564,10 @@ fo_add_srv_server(struct fo_service *service, const char *srv, discovery_domain); if (server->srv_data->discovery_domain == NULL) return ENOMEM; - server->srv_data->dns_domain = - server->srv_data->discovery_domain; + server->srv_data->dns_domain = talloc_strdup(server->srv_data, + discovery_domain); + if (server->srv_data->dns_domain == NULL) + return ENOMEM; } server->srv_data->sssd_domain = |