summaryrefslogtreecommitdiff
path: root/lib/gnutls_cipher.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-05 19:28:46 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2011-03-06 22:26:50 +0100
commitb6b52f6c19ef13337892be120d29f62526fbb15d (patch)
treefde54eaa8c1106f05fe193a6f047511f7b72d2c2 /lib/gnutls_cipher.c
parent789b253b7946c1c0136c4f795afa37ffc75fdd80 (diff)
downloadgnutls-b6b52f6c19ef13337892be120d29f62526fbb15d.tar.gz
Added intermediate handshake layer that will order handshake packets and drop duplicates.
Diffstat (limited to 'lib/gnutls_cipher.c')
-rw-r--r--lib/gnutls_cipher.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gnutls_cipher.c b/lib/gnutls_cipher.c
index 64dbbd2e5f..d3551519d0 100644
--- a/lib/gnutls_cipher.c
+++ b/lib/gnutls_cipher.c
@@ -612,7 +612,8 @@ _gnutls_ciphertext2compressed (gnutls_session_t session,
if (compress_size < length)
return gnutls_assert_val(GNUTLS_E_DECOMPRESSION_FAILED);
- memmove (compress_data, ciphertext.data, length);
+ if (compress_data != ciphertext.data)
+ memcpy (compress_data, ciphertext.data, length);
return length;
}