diff options
Diffstat (limited to 'source3/libsmb/cli_lsarpc.c')
| -rw-r--r-- | source3/libsmb/cli_lsarpc.c | 16 | 
1 files changed, 15 insertions, 1 deletions
diff --git a/source3/libsmb/cli_lsarpc.c b/source3/libsmb/cli_lsarpc.c index 832758df4f..3216854608 100644 --- a/source3/libsmb/cli_lsarpc.c +++ b/source3/libsmb/cli_lsarpc.c @@ -99,6 +99,9 @@ NTSTATUS cli_lsa_open_policy(struct cli_state *cli, TALLOC_CTX *mem_ctx,  	if (NT_STATUS_IS_OK(result = r.status)) {  		*pol = r.pol; +#ifdef __INSURE__ +		pol->marker = malloc(1); +#endif  	}   done: @@ -160,6 +163,9 @@ NTSTATUS cli_lsa_open_policy2(struct cli_state *cli, TALLOC_CTX *mem_ctx,  	if (NT_STATUS_IS_OK(result = r.status)) {  		*pol = r.pol; +#ifdef __INSURE__ +		pol->marker = (char *)malloc(1); +#endif  	}   done: @@ -207,6 +213,9 @@ NTSTATUS cli_lsa_close(struct cli_state *cli, TALLOC_CTX *mem_ctx,  	/* Return output parameters */  	if (NT_STATUS_IS_OK(result = r.status)) { +#ifdef __INSURE__ +		SAFE_FREE(pol->marker); +#endif  		*pol = r.pol;  	} @@ -1052,7 +1061,10 @@ NTSTATUS cli_lsa_query_secobj(struct cli_state *cli, TALLOC_CTX *mem_ctx,  	return result;  } -/** Fetch a DOMAIN sid. Does complete cli setup / teardown anonymously. */ +#if 0 + +/** An example of how to use the routines in this file.  Fetch a DOMAIN +    sid. Does complete cli setup / teardown anonymously. */  BOOL fetch_domain_sid( char *domain, char *remote_machine, DOM_SID *psid)  { @@ -1150,4 +1162,6 @@ Error was : %s.\n", remote_machine, cli_errstr(&cli) ));  	return ret;  } +#endif +  /** @} **/  | 
