- Fixed memcpy() that had possible overlapping areas to memmove()

This commit is contained in:
Paul Bakker 2011-08-05 11:11:53 +00:00
parent 968bc9831b
commit 8934a98f82

View File

@ -996,7 +996,7 @@ int ssl_read_record( ssl_context *ssl )
*/
ssl->in_msglen -= ssl->in_hslen;
memcpy( ssl->in_msg, ssl->in_msg + ssl->in_hslen,
memmove( ssl->in_msg, ssl->in_msg + ssl->in_hslen,
ssl->in_msglen );
ssl->in_hslen = 4;