summaryrefslogtreecommitdiff
path: root/src/cli.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-01-23 21:05:18 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-01-23 21:05:18 +0100
commitb9fe619275c7c6058caf430b1320e0e370430367 (patch)
tree2c0ac61d1579f61c25e8acf47a9fe3f696231bcc /src/cli.c
parent4968dd090ecf9c88a105a2c805cf97638bcca75d (diff)
downloadgnutls-b9fe619275c7c6058caf430b1320e0e370430367.tar.gz
Updated ranges patch.
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/cli.c b/src/cli.c
index deacb6b418..a134daa5fb 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -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)
{