diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-01-23 21:05:18 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-01-23 21:05:18 +0100 |
commit | b9fe619275c7c6058caf430b1320e0e370430367 (patch) | |
tree | 2c0ac61d1579f61c25e8acf47a9fe3f696231bcc /src/cli.c | |
parent | 4968dd090ecf9c88a105a2c805cf97638bcca75d (diff) | |
download | gnutls-b9fe619275c7c6058caf430b1320e0e370430367.tar.gz |
Updated ranges patch.
Diffstat (limited to 'src/cli.c')
-rw-r--r-- | src/cli.c | 18 |
1 files changed, 11 insertions, 7 deletions
@@ -1030,14 +1030,18 @@ after_handshake: bytes++; } } - if (ranges && gnutls_range_can_use_length_hiding(hd.session)) { - gnutls_range_st range; - range.low = 0; - range.high = MAX_BUF; - ret = socket_send_range (&hd, buffer, bytes, &range); - } else { + + if (ranges && gnutls_record_can_use_length_hiding(hd.session)) + { + gnutls_range_st range; + range.low = 0; + range.high = MAX_BUF; + ret = socket_send_range (&hd, buffer, bytes, &range); + } + else + { ret = socket_send(&hd, buffer, bytes); - } + } if (ret > 0) { |