summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2009-10-31 20:25:17 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2009-11-01 01:31:52 +0200
commit03ebe989f1e9de794c32e2a78acc4774c1b4545e (patch)
tree3aa517104da71cdd8a480bf8640b07973430eafb
parent872c465b7c9f736684f122fbbcb4eef26f60908b (diff)
downloadgnutls-03ebe989f1e9de794c32e2a78acc4774c1b4545e.tar.gz
remove unnessesary warning.
-rw-r--r--lib/ext_cert_type.c3
-rw-r--r--lib/gnutls_cipher.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ext_cert_type.c b/lib/ext_cert_type.c
index 805cfdf016..c5a5a352ce 100644
--- a/lib/ext_cert_type.c
+++ b/lib/ext_cert_type.c
@@ -88,8 +88,9 @@ _gnutls_cert_type_recv_params (gnutls_session_t session,
{
uint8_t len;
+ DECR_LEN (data_size, 1);
len = data[0];
- DECR_LEN (data_size, len+1);
+ DECR_LEN (data_size, len);
for (i = 0; i < len; i++)
{
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c
index 7519821cf9..525540e0b3 100644
--- a/lib/gnutls_cipher.c
+++ b/lib/gnutls_cipher.c
@@ -201,7 +201,6 @@ mac_init (digest_hd_st * td, gnutls_mac_algorithm_t mac, opaque * secret,
if (mac == GNUTLS_MAC_NULL)
{
- gnutls_assert ();
return GNUTLS_E_HASH_FAILED;
}