aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/torgzip.c2
-rw-r--r--src/common/tortls.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/common/torgzip.c b/src/common/torgzip.c
index 1fc301260..09e22bd2d 100644
--- a/src/common/torgzip.c
+++ b/src/common/torgzip.c
@@ -139,7 +139,7 @@ tor_gzip_compress(char **out, size_t *out_len,
*out_len = stream->total_out;
if (stream->total_out > out_size + 4097) {
/* If we're wasting more than 4k, don't. */
- tor_realloc(*out, stream->total_out + 1);
+ *out = tor_realloc(*out, stream->total_out + 1);
}
if (deflateEnd(stream)!=Z_OK) {
log_warn(LD_BUG, "Error freeing gzip structures");
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 68e9baf33..8c3163389 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -43,7 +43,7 @@ const char tortls_c_id[] =
#include <string.h>
// #define V2_HANDSHAKE_SERVER
-// #define V2_HANDSHAKE_CLIENT
+#define V2_HANDSHAKE_CLIENT
/* Copied from or.h */
#define LEGAL_NICKNAME_CHARACTERS \