From dcf1205c60ca59dfe1060f9d8c4b927e1c0777cf Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 1 Feb 2012 17:32:31 -0500 Subject: Fix credentials export/import --- proxy/src/gp_export.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proxy/src/gp_export.c') diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c index 8b87aaa..93c484c 100644 --- a/proxy/src/gp_export.c +++ b/proxy/src/gp_export.c @@ -119,7 +119,7 @@ int gp_export_gssx_cred(gss_cred_id_t *in, gssx_cred *out) el->acceptor_time_rec = acceptor_lifetime; } - ret = gp_conv_octet_string(sizeof(gss_cred_id_t), *in, + ret = gp_conv_octet_string(sizeof(gss_cred_id_t), in, &out->cred_handle_reference); if (ret) { goto done; @@ -140,7 +140,7 @@ done: int gp_import_gssx_cred(octet_string *in, gss_cred_id_t *out) { if (in) { - *out = (gss_cred_id_t)(in->octet_string_val); + memcpy(out, in->octet_string_val, sizeof(gss_cred_id_t)); } else { *out = NULL; } -- cgit