s3:libads: Remove no longer used is_mine flag from ADS_STRUCT
authorSamuel Cabrero <scabrero@samba.org>
Wed, 22 Jun 2022 08:50:44 +0000 (10:50 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 27 Jun 2022 15:50:30 +0000 (15:50 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/ads.h
source3/libads/ads_struct.c
source3/libads/ndr.c

index ebc5728f3a4fccbe769271f55f7dff44a1dc2f86..808554310a42dcdcf8b4d3941134717ec0895198 100644 (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;
index 184185fa14846d934c415ca8e0da4524d5e2cd2a..d7000afe06fe132f6797d63bc28cf287c128cfab 100644 (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;
index 07f0f7e948a223ca844195bfe4f37ccedfbf60ca..57930577527d7fcecf27143b8443349b1a02afee 100644 (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);