diff options
author | Petr Cech <pcech@redhat.com> | 2016-05-12 03:04:03 -0400 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-06-07 12:01:50 +0200 |
commit | 9a6ff0851fc707f21165818f66ae926fa14d7226 (patch) | |
tree | 427d013c893485bce9599e8d004a25c688763cda /src | |
parent | 52f1093ef3d7c44132ec10c57436865b2cbb19d7 (diff) | |
download | sssd-9a6ff0851fc707f21165818f66ae926fa14d7226.tar.gz sssd-9a6ff0851fc707f21165818f66ae926fa14d7226.tar.xz sssd-9a6ff0851fc707f21165818f66ae926fa14d7226.zip |
AD_PROVIDER: Fix constant char *
This patch fixes loading of ad_domain option. It is declared like
const, co we should use dp_opt_get_cstring() instead of
dp_opt_get_string().
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ad/ad_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index e40fb6f1d..b17a9f50a 100644 --- a/src/providers/ad/ad_init.c +++ b/src/providers/ad/ad_init.c @@ -552,7 +552,7 @@ int sssm_ad_subdomains_init(struct be_ctx *bectx, return EINVAL; } - ad_domain = dp_opt_get_string(ad_options->basic, AD_DOMAIN); + ad_domain = dp_opt_get_cstring(ad_options->basic, AD_DOMAIN); ret = ad_subdom_init(bectx, id_ctx, ad_domain, ops, pvt_data); if (ret != EOK) { |