diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-29 13:24:54 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-29 13:24:54 -0800 |
commit | d2cf97aeba14a4d336fb57b01f19bd5a08dcb003 (patch) | |
tree | 659f15d8011a1a110850c01e11078eae86d8bdad /source3/libsmb/passchange.c | |
parent | 42c87fe6e6036a56b178183b034275321949050d (diff) | |
download | samba-d2cf97aeba14a4d336fb57b01f19bd5a08dcb003.tar.gz samba-d2cf97aeba14a4d336fb57b01f19bd5a08dcb003.tar.bz2 samba-d2cf97aeba14a4d336fb57b01f19bd5a08dcb003.zip |
Remove the explicit TALLOC_CTX * from cli_struct.
Make us very explicit about how long a talloc ctx
should last.
Jeremy.
(This used to be commit ba9e2be2b5a59684e854609f9d82ea1633448c62)
Diffstat (limited to 'source3/libsmb/passchange.c')
-rw-r--r-- | source3/libsmb/passchange.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/passchange.c b/source3/libsmb/passchange.c index 9941b728ae..468750f801 100644 --- a/source3/libsmb/passchange.c +++ b/source3/libsmb/passchange.c @@ -177,7 +177,7 @@ NTSTATUS remote_password_change(const char *remote_machine, const char *user_nam } } - if (NT_STATUS_IS_OK(result = rpccli_samr_chgpasswd_user(pipe_hnd, cli->mem_ctx, user_name, + if (NT_STATUS_IS_OK(result = rpccli_samr_chgpasswd_user(pipe_hnd, pipe_hnd->mem_ctx, user_name, new_passwd, old_passwd))) { /* Great - it all worked! */ cli_shutdown(cli); @@ -207,7 +207,7 @@ NTSTATUS remote_password_change(const char *remote_machine, const char *user_nam if ( pipe_hnd && (NT_STATUS_IS_OK(result = rpccli_samr_chgpasswd_user(pipe_hnd, - cli->mem_ctx, + pipe_hnd->mem_ctx, user_name, new_passwd, old_passwd)))) { |