Only call memcpy when the length is larger than 0.
authorKurt Roeckx <kurt@roeckx.be>
Thu, 8 Dec 2016 18:20:55 +0000 (19:20 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Thu, 8 Dec 2016 19:23:41 +0000 (20:23 +0100)
commitc1f138c194d7d7dddb74c3a41215e8de638d7a26
treeda1072ff5bd439c71358700899ec3c65ce40babb
parente01cee6d8fbba09dc811af91a5e24dab95fc66a1
Only call memcpy when the length is larger than 0.

Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #2050
(cherry picked from commit a19fc66a6b5f99ad00305e152bdb41460d728640)
ssl/statem/statem_clnt.c