summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-12 02:16:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:14 -0500
commit56712033d59212c8d72c8d60df885a5764601b7e (patch)
tree5e62fb9f425ff60d992d369374c2e7dd382a3f45
parente27ba5e4c6f684c0fc0f0db9a84164384ff3c0fd (diff)
downloadsamba-56712033d59212c8d72c8d60df885a5764601b7e.tar.gz
samba-56712033d59212c8d72c8d60df885a5764601b7e.tar.bz2
samba-56712033d59212c8d72c8d60df885a5764601b7e.zip
r11694: fixed 2 valgrind errors
(This used to be commit 6381fe72417a5cd231b63a87a6a0ba9c65030ce6)
-rw-r--r--source4/libcli/smb2/create.c2
-rw-r--r--source4/libcli/smb2/session.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/smb2/create.c b/source4/libcli/smb2/create.c
index e4b0773758..1316626432 100644
--- a/source4/libcli/smb2/create.c
+++ b/source4/libcli/smb2/create.c
@@ -70,7 +70,7 @@ struct smb2_request *smb2_create_send(struct smb2_tree *tree, struct smb2_create
SIVAL(ptr, 0x04, io->in.unknown8);
SIVAL(ptr, 0x08, io->in.unknown9);
SIVAL(ptr, 0x0C, io->in.unknown10);
- SIVAL(ptr, 0x10, io->in.unknown11);
+ SBVAL(ptr, 0x10, io->in.unknown11);
data_blob_free(&path);
diff --git a/source4/libcli/smb2/session.c b/source4/libcli/smb2/session.c
index baa706cf8b..257e754660 100644
--- a/source4/libcli/smb2/session.c
+++ b/source4/libcli/smb2/session.c
@@ -154,7 +154,7 @@ static void session_request_handler(struct smb2_request *req)
if (NT_STATUS_EQUAL(c->status, NT_STATUS_MORE_PROCESSING_REQUIRED) ||
(NT_STATUS_IS_OK(c->status) &&
NT_STATUS_EQUAL(state->gensec_status, NT_STATUS_MORE_PROCESSING_REQUIRED))) {
- c->status = gensec_update(req->session->gensec, c,
+ c->status = gensec_update(session->gensec, c,
state->io.out.secblob,
&state->io.in.secblob);
state->gensec_status = c->status;