* asn1buf.c (asn12krb5_buf): Initialize magic fields of structure.
authorEzra Peisach <epeisach@mit.edu>
Thu, 27 Jun 1996 14:38:14 +0000 (14:38 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 27 Jun 1996 14:38:14 +0000 (14:38 +0000)
commit72e11ec4a1b3cd663e803ef28540870efcad0a92
treeb9b51d24b228d017a6f444cf35a9d10ce5d90ee4
parent98cc791dbbc02bd7b84ba91302fee9173039f6fd
* asn1buf.c (asn12krb5_buf): Initialize magic fields of structure.
(asn1buf_expand): If pre-allocating memory for future use, store
proper end of buffer.

This was a big performance hit in asn.1 routines as every time it tried to
decode an octet, 200 bytes were allocated (for future use), but the
buffer structure pnly thought that one byte was allocated and the next
time through would try to allocate memory again.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8553 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/asn1buf.c