summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-01-06 16:58:51 +0100
committerStefan Metzmacher <metze@samba.org>2012-01-18 16:23:23 +0100
commitf14bcdf8ec894d77f80e532859c2c7170406eaad (patch)
treea09144cd24640509a65aaedfc27ca9226654f171
parent23a062b51bf3a2a9bd5f406dd90a5655299cb077 (diff)
downloadsamba-f14bcdf8ec894d77f80e532859c2c7170406eaad.tar.gz
samba-f14bcdf8ec894d77f80e532859c2c7170406eaad.tar.bz2
samba-f14bcdf8ec894d77f80e532859c2c7170406eaad.zip
s3-gse gss_wrap_iov_length() only needs the type and length
metze
-rw-r--r--source3/librpc/crypto/gse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/librpc/crypto/gse.c b/source3/librpc/crypto/gse.c
index 2d4cc5e005..271445ec38 100644
--- a/source3/librpc/crypto/gse.c
+++ b/source3/librpc/crypto/gse.c
@@ -675,14 +675,16 @@ static size_t gse_get_signature_length(struct gse_context *gse_ctx,
{
OM_uint32 gss_min, gss_maj;
gss_iov_buffer_desc iov[2];
- uint8_t fakebuf[payload_size];
int sealed;
+ /*
+ * gss_wrap_iov_length() only needs the type and length
+ */
iov[0].type = GSS_IOV_BUFFER_TYPE_HEADER;
iov[0].buffer.value = NULL;
iov[0].buffer.length = 0;
iov[1].type = GSS_IOV_BUFFER_TYPE_DATA;
- iov[1].buffer.value = fakebuf;
+ iov[1].buffer.value = NULL;
iov[1].buffer.length = payload_size;
gss_maj = gss_wrap_iov_length(&gss_min, gse_ctx->gss_ctx,