prevent undefined behavior when src and dst are equal
authorRoberto Guimaraes <rguimaraes@fastly.com>
Sun, 26 Feb 2017 23:47:40 +0000 (15:47 -0800)
committerRich Salz <rsalz@openssl.org>
Wed, 8 Mar 2017 14:48:49 +0000 (09:48 -0500)
commita556145a2c973303fd70315d9b77f126f43638f0
treeee069d3817516edec0064b98c53c9d67f0f8d620
parentb1f723c503b371776b2ae67a8cb78c8765387174
prevent undefined behavior when src and dst are equal

CLA: trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2750)

(cherry picked from commit 6aad9393680ccde591905c8d71da92a241756394)
ssl/ssl_sess.c