summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-05-31 20:22:54 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-06-03 20:05:20 +0200
commit06dad7ed041e90b106475e06d4eb542548d560ed (patch)
treef2f588f9cfd64cf74f323418e49f240b61e07ab2 /src
parent99b2ad71169aa02846f7843d26cbe28e1e1c81fe (diff)
downloadsssd-06dad7ed041e90b106475e06d4eb542548d560ed.tar.gz
sssd-06dad7ed041e90b106475e06d4eb542548d560ed.tar.bz2
sssd-06dad7ed041e90b106475e06d4eb542548d560ed.zip
Use deep copy for dns_domain and discovery_domain
https://fedorahosted.org/sssd/ticket/1929
Diffstat (limited to 'src')
-rw-r--r--src/providers/fail_over.c6
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 =