export_name.c (krb5_gss_export_name): Fix bug in gss_export_name. The
authorTheodore Tso <tytso@mit.edu>
Sat, 28 Feb 1998 00:24:40 +0000 (00:24 +0000)
committerTheodore Tso <tytso@mit.edu>
Sat, 28 Feb 1998 00:24:40 +0000 (00:24 +0000)
2nd length field in the ASN.1 was 2 bytes bigger than it should have
been.

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

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/export_name.c

index bf2dc9b82d493f02eb05077e8360916900ad2a18..d78347bad6b5ba1d11c1b5b2724b6e9fbc6d6c4a 100644 (file)
@@ -1,3 +1,9 @@
+Fri Feb 27 18:41:08 1998  Theodore Y. Ts'o  <tytso@mit.edu>
+
+       * export_name.c (krb5_gss_export_name): Fix bug in
+               gss_export_name.  The 2nd length field in the ASN.1 was 2
+               bytes bigger than it should have been.
+
 Wed Feb 18 16:12:14 1998  Tom Yu  <tlyu@mit.edu>
 
        * Makefile.in: Remove trailing slash from thisconfigdir.  Fix up
index 1e2d68f0b8c6d37be445c365918f9485d3f153cd..f3d25db15f3f57288d726a8235cbf592b6d82223 100644 (file)
@@ -66,7 +66,7 @@ OM_uint32 krb5_gss_export_name(OM_uint32  *minor_status,
        *cp++ = (gss_mech_krb5->length+2) >> 8;
        *cp++ = (gss_mech_krb5->length+2) & 0xFF;
        *cp++ = 0x06;
-       *cp++ = (gss_mech_krb5->length+2) & 0xFF;
+       *cp++ = (gss_mech_krb5->length) & 0xFF;
        memcpy(cp, gss_mech_krb5->elements, gss_mech_krb5->length);
        cp += gss_mech_krb5->length;
        *cp++ = length >> 24;