Fix undefined behaviour
authorAnton Likhtarov <alikhtarov@fb.com>
Wed, 15 Feb 2017 01:35:35 +0000 (17:35 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 15 Feb 2017 01:55:05 +0000 (17:55 -0800)
commit1ce2015a3da9bd9e9d5ad9837bef3963151b858d
treeacad4112089085c72d0e096d64966e477de9b60a
parent41cee12b073235250d4df38b6179f8c2977a6b39
Fix undefined behaviour

Summary: memcpy's src cannot be nullptr even if the size is 0.

Reviewed By: djwatson

Differential Revision: D4560100

fbshipit-source-id: 37cd3ed73f902a136f711a5c1a918258f94d1063
folly/io/async/AsyncSSLSocket.cpp