summaryrefslogtreecommitdiffstats
path: root/proxy/src/mechglue/gpp_context.c
diff options
context:
space:
mode:
authorGünther Deschner <gdeschner@redhat.com>2013-03-08 22:53:57 +0100
committerSimo Sorce <simo@redhat.com>2013-03-14 13:42:50 -0400
commit8d86b99faeb2e725471bedc9837c72e9e579ca3b (patch)
tree0045461e329c60f5917aa2baf3f28bdaa4694940 /proxy/src/mechglue/gpp_context.c
parent25e52de4cacb3b2bb96475bbb90d9f518bcc1127 (diff)
downloadgss-proxy-8d86b99faeb2e725471bedc9837c72e9e579ca3b.tar.gz
gss-proxy-8d86b99faeb2e725471bedc9837c72e9e579ca3b.tar.xz
gss-proxy-8d86b99faeb2e725471bedc9837c72e9e579ca3b.zip
Fix gssi_import_sec_context_by_mech()
Use spmech->length as we are replacing the original oid with spmech. Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'proxy/src/mechglue/gpp_context.c')
-rw-r--r--proxy/src/mechglue/gpp_context.c2
1 files changed, 1 insertions, 1 deletions
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);