From e5df9eb2d67f0c5b1c942c86a2e6420b76601ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 29 Mar 2009 19:49:21 +0000 Subject: [PATCH] don't send more then 10 EDIs git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25003 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/pkinit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/krb5/pkinit.c b/lib/krb5/pkinit.c index 7e5980c77..e9fc7d8fc 100644 --- a/lib/krb5/pkinit.c +++ b/lib/krb5/pkinit.c @@ -252,6 +252,9 @@ cert2epi(hx509_context context, void *ctx, hx509_cert c) void *p; int ret; + if (ids->len > 10) + return 0; + memset(&id, 0, sizeof(id)); ret = hx509_cert_get_subject(c, &subject);