diff options
Diffstat (limited to 'crypto/heimdal/lib/krb5/build_ap_req.c')
-rw-r--r-- | crypto/heimdal/lib/krb5/build_ap_req.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crypto/heimdal/lib/krb5/build_ap_req.c b/crypto/heimdal/lib/krb5/build_ap_req.c index cab5e6f..b1968fe 100644 --- a/crypto/heimdal/lib/krb5/build_ap_req.c +++ b/crypto/heimdal/lib/krb5/build_ap_req.c @@ -33,9 +33,9 @@ #include <krb5_locl.h> -RCSID("$Id: build_ap_req.c,v 1.18 2002/09/04 16:26:04 joda Exp $"); +RCSID("$Id: build_ap_req.c 13863 2004-05-25 21:46:46Z lha $"); -krb5_error_code +krb5_error_code KRB5_LIB_FUNCTION krb5_build_ap_req (krb5_context context, krb5_enctype enctype, krb5_creds *cred, @@ -68,7 +68,8 @@ krb5_build_ap_req (krb5_context context, ASN1_MALLOC_ENCODE(AP_REQ, retdata->data, retdata->length, &ap, &len, ret); - + if(ret == 0 && retdata->length != len) + krb5_abortx(context, "internal error in ASN.1 encoder"); free_AP_REQ(&ap); return ret; |