Skip to content

Commit

Permalink
s3:libads: Remove no longer used is_mine flag from ADS_STRUCT
Browse files Browse the repository at this point in the history
Signed-off-by: Samuel Cabrero <[email protected]>
Reviewed-by: Jeremy Allison <[email protected]>
  • Loading branch information
Samuel Cabrero authored and jrasamba committed Jun 27, 2022
1 parent d0dc017 commit e60d2bc
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions source3/include/ads.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions source3/libads/ads_struct.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion source3/libads/ndr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e60d2bc

Please sign in to comment.