From e60d2bc8c88d02fe131ad4f1cc14425c09b83b26 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Wed, 22 Jun 2022 10:50:44 +0200 Subject: [PATCH] s3:libads: Remove no longer used is_mine flag from ADS_STRUCT Signed-off-by: Samuel Cabrero Reviewed-by: Jeremy Allison --- source3/include/ads.h | 2 -- source3/libads/ads_struct.c | 3 --- source3/libads/ndr.c | 1 - 3 files changed, 6 deletions(-) diff --git a/source3/include/ads.h b/source3/include/ads.h index ebc5728f3a4..808554310a4 100644 --- a/source3/include/ads.h +++ b/source3/include/ads.h @@ -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; diff --git a/source3/libads/ads_struct.c b/source3/libads/ads_struct.c index 184185fa148..d7000afe06f 100644 --- a/source3/libads/ads_struct.c +++ b/source3/libads/ads_struct.c @@ -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; diff --git a/source3/libads/ndr.c b/source3/libads/ndr.c index 07f0f7e948a..57930577527 100644 --- a/source3/libads/ndr.c +++ b/source3/libads/ndr.c @@ -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); -- 2.47.3