diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-05 19:28:46 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-03-06 22:26:50 +0100 |
commit | b6b52f6c19ef13337892be120d29f62526fbb15d (patch) | |
tree | fde54eaa8c1106f05fe193a6f047511f7b72d2c2 /lib/gnutls_cipher.c | |
parent | 789b253b7946c1c0136c4f795afa37ffc75fdd80 (diff) | |
download | gnutls-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.c | 3 |
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; } |