summaryrefslogtreecommitdiff
path: root/crypto/heimdal/lib/krb5/build_ap_req.c
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>2008-05-07 13:39:42 +0000
committerDoug Rabson <dfr@FreeBSD.org>2008-05-07 13:39:42 +0000
commit4fe54d7c6acb302aacc6ac18798804b26c882c13 (patch)
tree07a0d6761d1b42410a27e4c7d583b766d6671f80 /crypto/heimdal/lib/krb5/build_ap_req.c
parent86067c77149c346cf467f1db4307a68c3632aa23 (diff)
parentc19800e8cd5640693f36f2040db4ab5e8d738146 (diff)
Notes
Diffstat (limited to 'crypto/heimdal/lib/krb5/build_ap_req.c')
-rw-r--r--crypto/heimdal/lib/krb5/build_ap_req.c7
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 cab5e6fd2df6..b1968fe817b7 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;