]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
correctly check extension size.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 31 Oct 2009 08:33:38 +0000 (10:33 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 31 Oct 2009 08:33:38 +0000 (10:33 +0200)
lib/ext_cert_type.c

index 6d3e441480c5898346f97d13220d122848ac033b..805cfdf016e5f8f3affa60be5c14b8b33f9e8e9e 100644 (file)
@@ -89,7 +89,7 @@ _gnutls_cert_type_recv_params (gnutls_session_t session,
          uint8_t len;
 
          len = data[0];
-         DECR_LEN (data_size, len);
+         DECR_LEN (data_size, len+1);
 
          for (i = 0; i < len; i++)
            {