1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-18 09:44:19 +03:00

s3:libads: Remove no longer used is_mine flag from ADS_STRUCT

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Samuel Cabrero
2022-06-22 10:50:44 +02:00
committed by Jeremy Allison
parent d0dc0171ad
commit e60d2bc8c8
3 changed files with 0 additions and 6 deletions

View File

@@ -56,8 +56,6 @@ struct ads_saslwrap {
};
typedef struct ads_struct {
int is_mine; /* do I own this structure's memory? */
/* info needed to find the server */
struct {
char *realm;

View File

@@ -182,9 +182,6 @@ ADS_STRUCT *ads_init(TALLOC_CTX *mem_ctx,
ads->server.workgroup = workgroup ? SMB_STRDUP(workgroup) : NULL;
ads->server.ldap_server = ldap_server? SMB_STRDUP(ldap_server) : NULL;
/* the caller will own the memory by default */
ads->is_mine = 1;
wrap_flags = lp_client_ldap_sasl_wrapping();
if (wrap_flags == -1) {
wrap_flags = 0;

View File

@@ -45,7 +45,6 @@ void ndr_print_ads_struct(struct ndr_print *ndr, const char *name, const struct
{
ndr_print_struct(ndr, name, "ads_struct");
ndr->depth++;
ndr_print_bool(ndr, "is_mine", r->is_mine);
ndr_print_struct(ndr, name, "server");
ndr->depth++;
ndr_print_string(ndr, "realm", r->server.realm);