diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2013-05-31 20:22:54 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-06-03 20:05:20 +0200 |
commit | 06dad7ed041e90b106475e06d4eb542548d560ed (patch) | |
tree | f2f588f9cfd64cf74f323418e49f240b61e07ab2 /src | |
parent | 99b2ad71169aa02846f7843d26cbe28e1e1c81fe (diff) | |
download | sssd-06dad7ed041e90b106475e06d4eb542548d560ed.tar.gz sssd-06dad7ed041e90b106475e06d4eb542548d560ed.tar.xz 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.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index 81fc45ce3..12b6c3782 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 = |