git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4962a44
)
s4:libcli/smb_composite: we only check the signature when the server return OK
author
Stefan Metzmacher
<metze@samba.org>
Wed, 24 Sep 2008 01:59:53 +0000
(
03:59
+0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 24 Sep 2008 02:08:31 +0000
(
04:08
+0200)
We need to manually free the request, otherwise the timeout handler is
triggered later.
metze
source4/libcli/smb_composite/sesssetup.c
patch
|
blob
|
history
diff --git
a/source4/libcli/smb_composite/sesssetup.c
b/source4/libcli/smb_composite/sesssetup.c
index 92b49dc3d4028839dd77ddb4ab4b3aa986116e7b..645f5362ac30238d5ec3a2c57ff74b504d9eeb19 100644
(file)
--- a/
source4/libcli/smb_composite/sesssetup.c
+++ b/
source4/libcli/smb_composite/sesssetup.c
@@
-97,6
+97,15
@@
static void request_handler(struct smbcli_request *req)
c->status = state->remote_status;
state->req = NULL;
+ /*
+ * we only need to check the signature if the
+ * NT_STATUS_OK is returned
+ */
+ if (!NT_STATUS_IS_OK(state->remote_status)) {
+ talloc_free(check_req);
+ check_req = NULL;
+ }
+
switch (state->setup.old.level) {
case RAW_SESSSETUP_OLD:
state->io->out.vuid = state->setup.old.out.vuid;