From 8d86b99faeb2e725471bedc9837c72e9e579ca3b Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 8 Mar 2013 22:53:57 +0100 Subject: Fix gssi_import_sec_context_by_mech() Use spmech->length as we are replacing the original oid with spmech. Signed-off-by: Simo Sorce --- proxy/src/mechglue/gpp_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/mechglue/gpp_context.c b/proxy/src/mechglue/gpp_context.c index b5c8cfc..19a7925 100644 --- a/proxy/src/mechglue/gpp_context.c +++ b/proxy/src/mechglue/gpp_context.c @@ -106,7 +106,7 @@ OM_uint32 gssi_import_sec_context_by_mech(OM_uint32 *minor_status, goto done; } - len = htobe32(wrap_token.length); + len = htobe32(spmech->length); memcpy(wrap_token.value, &len, sizeof(uint32_t)); memcpy(wrap_token.value + sizeof(uint32_t), spmech->elements, spmech->length); -- cgit