summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-19 16:02:31 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-20 15:48:58 +0200
commit21a6bdc680311d58625c4e46c8126b38700fac52 (patch)
tree5df1c0dc8cb9f3776f18303494a129b04a35938c /source3
parent8d159e9de108f2ccd107676a68802d90b95e5e7a (diff)
downloadsamba-21a6bdc680311d58625c4e46c8126b38700fac52.tar.gz
samba-21a6bdc680311d58625c4e46c8126b38700fac52.tar.bz2
samba-21a6bdc680311d58625c4e46c8126b38700fac52.zip
s3:libsmb: smb_bytes_talloc_string() doesn't need a cli_state
metze
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/cliconnect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index e5d8700d59..33e4217d6c 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -59,14 +59,14 @@ static const struct {
strings.
*******************************************************/
-static NTSTATUS smb_bytes_talloc_string(struct cli_state *cli,
+static NTSTATUS smb_bytes_talloc_string(TALLOC_CTX *mem_ctx,
char *inbuf,
char **dest,
uint8_t *src,
size_t srclen,
ssize_t *destlen)
{
- *destlen = clistr_pull_talloc(cli,
+ *destlen = clistr_pull_talloc(mem_ctx,
inbuf,
SVAL(inbuf, smb_flg2),
dest,
@@ -78,7 +78,7 @@ static NTSTATUS smb_bytes_talloc_string(struct cli_state *cli,
}
if (*dest == NULL) {
- *dest = talloc_strdup(cli, "");
+ *dest = talloc_strdup(mem_ctx, "");
if (*dest == NULL) {
return NT_STATUS_NO_MEMORY;
}