(krb5_build_authenticator): abort on internal asn1 encode error

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13301 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-02-03 16:58:24 +00:00
parent da1b9cbc7f
commit 79ec557a94

View File

@@ -93,9 +93,10 @@ krb5_build_authenticator (krb5_context context,
}
ASN1_MALLOC_ENCODE(Authenticator, buf, buf_size, auth, &len, ret);
if (ret)
goto fail;
if(buf_size != len)
krb5_abortx(context, "internal error in ASN.1 encoder");
ret = krb5_crypto_init(context, &cred->session, enctype, &crypto);
if (ret)