summaryrefslogtreecommitdiff
path: root/lib/gnutls_range.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-15 13:58:05 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-04-15 14:15:07 +0200
commitca231b0da8dcd87af1597a26ea83f29be77e0e10 (patch)
tree82e5747ad5ed8a55a4004c181f89746a3073663d /lib/gnutls_range.c
parentbc2e021dd8653cbf6fd9a8007afbaad78391922f (diff)
downloadgnutls-ca231b0da8dcd87af1597a26ea83f29be77e0e10.tar.gz
several bug fixes due to coverity.
Diffstat (limited to 'lib/gnutls_range.c')
-rw-r--r--lib/gnutls_range.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/gnutls_range.c b/lib/gnutls_range.c
index 853e54a7e0..aa83001b27 100644
--- a/lib/gnutls_range.c
+++ b/lib/gnutls_range.c
@@ -248,10 +248,6 @@ gnutls_record_send_range(gnutls_session_t session, const void *data,
if (ret == 0)
return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
- if (ret == 0 && range->low != range->high)
- /* Cannot use LH, but a range was given */
- return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
-
_gnutls_set_range(&cur_range, range->low, range->high);
_gnutls_record_log