summaryrefslogtreecommitdiff
path: root/source4/libcli/smb_composite
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-10-24 16:14:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:21:41 -0500
commit9b97c4d02e5391f5e5df10468c3a5f428e49d955 (patch)
tree6f56312395c7b69ff2f43bb973d88c3254212263 /source4/libcli/smb_composite
parent2da96ebd7afba8a0543beaac02acaf66ebe4f8c4 (diff)
downloadsamba-9b97c4d02e5391f5e5df10468c3a5f428e49d955.tar.gz
samba-9b97c4d02e5391f5e5df10468c3a5f428e49d955.tar.bz2
samba-9b97c4d02e5391f5e5df10468c3a5f428e49d955.zip
r19480: - clear the whole session struct (only let the pid untouched)
- zero state struct metze (This used to be commit 97fb407a4cfcf71e95663e437cb7f638ac4028fc)
Diffstat (limited to 'source4/libcli/smb_composite')
-rw-r--r--source4/libcli/smb_composite/connect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libcli/smb_composite/connect.c b/source4/libcli/smb_composite/connect.c
index 7d4960d7d5..fc788d5d31 100644
--- a/source4/libcli/smb_composite/connect.c
+++ b/source4/libcli/smb_composite/connect.c
@@ -179,6 +179,9 @@ static NTSTATUS connect_session_setup(struct composite_context *c,
* have been given a uid in the NTLMSSP_CHALLENGE reply. This
* would lead to an invalid uid in the anonymous fallback */
state->session->vuid = 0;
+ data_blob_free(&state->session->user_session_key);
+ talloc_free(state->session->gensec);
+ state->session->gensec = NULL;
state->creq = smb_composite_sesssetup_send(state->session,
state->io_setup);
@@ -441,7 +444,7 @@ struct composite_context *smb_composite_connect_send(struct smb_composite_connec
c = talloc_zero(mem_ctx, struct composite_context);
if (c == NULL) goto failed;
- state = talloc(c, struct connect_state);
+ state = talloc_zero(c, struct connect_state);
if (state == NULL) goto failed;
if (event_ctx == NULL) {