diff options
author | Volker Lendecke <vlendec@samba.org> | 2005-08-07 20:59:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:00:27 -0500 |
commit | db8c38340b35574fc553b5ef7019f942699356f4 (patch) | |
tree | 986d7e824a68db139b13d14c94d8faf31b5bd888 /source3/rpcclient | |
parent | fd6dde216168fba678346c2520051ddc63e70ae5 (diff) | |
download | samba-db8c38340b35574fc553b5ef7019f942699356f4.tar.gz samba-db8c38340b35574fc553b5ef7019f942699356f4.tar.bz2 samba-db8c38340b35574fc553b5ef7019f942699356f4.zip |
r9198: Convert hex_encode and strhex_to_data_blob to take a talloc context.
Volker
(This used to be commit c7d10e2c834d8d5136e2d01dea1ad286757deddb)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 3112db19ad..34e81cafe6 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -384,11 +384,10 @@ static NTSTATUS setup_schannel(struct cli_state *cli, int pipe_auth_flags, ret = cli_nt_setup_netsec(cli, sec_channel_type, pipe_auth_flags, trust_password); if (NT_STATUS_IS_OK(ret)) { char *hex_session_key; - hex_encode(cli->pipes[cli->pipe_idx].auth_info.sess_key, - sizeof(cli->pipes[cli->pipe_idx].auth_info.sess_key), - &hex_session_key); + hex_session_key = hex_encode(NULL, cli->pipes[cli->pipe_idx].auth_info.sess_key, + sizeof(cli->pipes[cli->pipe_idx].auth_info.sess_key)); printf("Got Session key: %s\n", hex_session_key); - SAFE_FREE(hex_session_key); + talloc_free(hex_session_key); } return ret; } |