gss_krb5int_export_lucid_sec_context was erroneously copying the first
authorGreg Hudson <ghudson@mit.edu>
Thu, 14 May 2009 16:50:52 +0000 (16:50 +0000)
committerGreg Hudson <ghudson@mit.edu>
Thu, 14 May 2009 16:50:52 +0000 (16:50 +0000)
sizeof(void *) bytes of the context into data_set, instead of the
pointer to the context.

ticket: 6488
status: open
tags: pullup
target_version: 1.7

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22351 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/lucid_context.c

index 32b0e13f72ba313db4438b77812ac8f2c58bcd54..ff8fe6e3f52c104aaa964345dc3bede247975f68 100644 (file)
@@ -107,7 +107,7 @@ gss_krb5int_export_lucid_sec_context(
         goto error_out;
     }
 
-    rep.value = lctx;
+    rep.value = &lctx;
     rep.length = sizeof(lctx);
 
     retval = generic_gss_add_buffer_set_member(minor_status, &rep, data_set);