From: Theodore Tso Date: Sat, 28 Feb 1998 00:24:40 +0000 (+0000) Subject: export_name.c (krb5_gss_export_name): Fix bug in gss_export_name. The X-Git-Tag: krb5-1.1-beta1~798 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d768d7ae0e4ad8f8ee6a60745d6552aa8aafcffe;p=krb5.git 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10475 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/gssapi/krb5/ChangeLog b/src/lib/gssapi/krb5/ChangeLog index bf2dc9b82..d78347bad 100644 --- a/src/lib/gssapi/krb5/ChangeLog +++ b/src/lib/gssapi/krb5/ChangeLog @@ -1,3 +1,9 @@ +Fri Feb 27 18:41:08 1998 Theodore Y. Ts'o + + * 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 * Makefile.in: Remove trailing slash from thisconfigdir. Fix up diff --git a/src/lib/gssapi/krb5/export_name.c b/src/lib/gssapi/krb5/export_name.c index 1e2d68f0b..f3d25db15 100644 --- a/src/lib/gssapi/krb5/export_name.c +++ b/src/lib/gssapi/krb5/export_name.c @@ -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;