]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 13 Mar 2012 21:37:26 +0000 (22:37 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 13 Mar 2012 21:37:26 +0000 (22:37 +0100)
lib/minitasn1/decoding.c

index 57e7b2b3b8e3a8b3d393dcc4a9b4eba2b6eed8fd..9cd5a349ff32940950155346c2843ff1ca12ec8c 100644 (file)
@@ -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;