From: Günther Deschner Date: Wed, 11 Jul 2007 13:32:57 +0000 (+0000) Subject: r23838: Allow to store schema and config path in ADS_STRUCT config. X-Git-Tag: samba-4.0.0alpha6~801^2~5383 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b62ade20d0721c694785fdd2882ea28b129bb0f1;p=thirdparty%2Fsamba.git r23838: Allow to store schema and config path in ADS_STRUCT config. Guenther (This used to be commit 1d5b08326fa72bd3423b377a4e6243466e778622) --- diff --git a/source3/include/ads.h b/source3/include/ads.h index c01a1055b2d..85c87bfeee0 100644 --- a/source3/include/ads.h +++ b/source3/include/ads.h @@ -58,6 +58,8 @@ typedef struct { char *client_site_name; time_t current_time; int tried_closest_dc; + char *schema_path; + char *config_path; } config; } ADS_STRUCT; diff --git a/source3/libads/ads_struct.c b/source3/libads/ads_struct.c index b01e0879ef9..c66d4e84e8e 100644 --- a/source3/libads/ads_struct.c +++ b/source3/libads/ads_struct.c @@ -159,6 +159,8 @@ void ads_destroy(ADS_STRUCT **ads) SAFE_FREE((*ads)->config.ldap_server_name); SAFE_FREE((*ads)->config.server_site_name); SAFE_FREE((*ads)->config.client_site_name); + SAFE_FREE((*ads)->config.schema_path); + SAFE_FREE((*ads)->config.config_path); ZERO_STRUCTP(*ads);