From f14bcdf8ec894d77f80e532859c2c7170406eaad Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 6 Jan 2012 16:58:51 +0100 Subject: s3-gse gss_wrap_iov_length() only needs the type and length metze --- source3/librpc/crypto/gse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/librpc/crypto') 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, -- cgit