From: Nikos Mavrogiannopoulos Date: Tue, 13 Mar 2012 21:37:26 +0000 (+0100) Subject: updated. X-Git-Tag: gnutls_3_0_16~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e071bf46de0d7eb91dbea46b13a196c7f5dd1ec7;p=thirdparty%2Fgnutls.git updated. --- diff --git a/lib/minitasn1/decoding.c b/lib/minitasn1/decoding.c index 57e7b2b3b8..9cd5a349ff 100644 --- a/lib/minitasn1/decoding.c +++ b/lib/minitasn1/decoding.c @@ -111,8 +111,8 @@ int ret, tot; return ret; tot = ret + *len; - - if (tot < 0 || tot > der_len) + + if (tot < ret || tot > der_len) return -3; return ret;