summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-06-06 08:28:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:56:34 -0500
commita38f529fd52265f8fefa24510d8bbbb294d2e320 (patch)
tree0530e744277df44c63b266ae3cee1970fd688b39 /source4
parent8a3d1a5fb7f7fa20789c451350ae4f2ca411a33f (diff)
downloadsamba-a38f529fd52265f8fefa24510d8bbbb294d2e320.tar.gz
samba-a38f529fd52265f8fefa24510d8bbbb294d2e320.tar.bz2
samba-a38f529fd52265f8fefa24510d8bbbb294d2e320.zip
r1043: allocate signature from the right mem_ctx. Samba4 now passes the schannel torture test.
(This used to be commit 95599e3ef79bf5cafb556121c99ffc5c3a8f3314)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/auth/schannel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/auth/schannel.c b/source4/libcli/auth/schannel.c
index 95e881d32a..8a261a506c 100644
--- a/source4/libcli/auth/schannel.c
+++ b/source4/libcli/auth/schannel.c
@@ -210,7 +210,7 @@ NTSTATUS schannel_seal_packet(struct schannel_state *state,
netsec_deal_with_seq_num(state, digest_final, seq_num);
if (!state->signature.data) {
- state->signature = data_blob_talloc(mem_ctx, NULL, 32);
+ state->signature = data_blob_talloc(state->mem_ctx, NULL, 32);
if (!state->signature.data) {
return NT_STATUS_NO_MEMORY;
}
@@ -253,7 +253,7 @@ NTSTATUS schannel_sign_packet(struct schannel_state *state,
netsec_deal_with_seq_num(state, digest_final, seq_num);
if (!state->signature.data) {
- state->signature = data_blob_talloc(mem_ctx, NULL, 32);
+ state->signature = data_blob_talloc(state->mem_ctx, NULL, 32);
if (!state->signature.data) {
return NT_STATUS_NO_MEMORY;
}