From: Simon Josefsson Date: Mon, 3 May 2010 13:19:30 +0000 (+0200) Subject: Protect against infloops. X-Git-Tag: gnutls_2_9_11~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=199a7ff4d57af9e230441b31a1be7330ba347a49;p=thirdparty%2Fgnutls.git Protect against infloops. --- diff --git a/tests/mini-x509.c b/tests/mini-x509.c index 0d411a3415..40178d2a59 100644 --- a/tests/mini-x509.c +++ b/tests/mini-x509.c @@ -191,6 +191,10 @@ main (int argc, char *argv[]) do { + static int max_iter = 0; + if (max_iter++ > 10) + abort (); + if (cret == GNUTLS_E_AGAIN) { cret = gnutls_handshake (client);