>From 037d9b088eeb6b6f380fa3bc453481d2c60fa9c3 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Fri, 31 May 2013 20:22:54 +0200 Subject: [PATCH] Use deep copy for dns_domain and discovery_domain https://fedorahosted.org/sssd/ticket/1929 --- src/providers/fail_over.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index 81fc45ce3ca46018dfb9fcccea47bc434a9608d7..12b6c37828b7da0e68579bbb94668c21574974f1 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 = -- 1.8.1.4