diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c index b27e9562b..8cd36a395 100644 --- a/ssl/s3_enc.c +++ b/ssl/s3_enc.c @@ -363,7 +363,7 @@ int ssl3_enc(SSL *s, int send) if ((s->session == NULL) || (ds == NULL) || (enc == NULL)) { - memcpy(rec->data,rec->input,rec->length); + memmove(rec->data,rec->input,rec->length); rec->input=rec->data; } else diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index 3077e9b9b..5f0976f9e 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -464,7 +464,7 @@ int tls1_enc(SSL *s, int send) if ((s->session == NULL) || (ds == NULL) || (enc == NULL)) { - memcpy(rec->data,rec->input,rec->length); + memmove(rec->data,rec->input,rec->length); rec->input=rec->data; } else