check ReadCallback before using it
authorWoo Xie <woo@fb.com>
Tue, 30 Jun 2015 16:21:08 +0000 (09:21 -0700)
committerSara Golemon <sgolemon@fb.com>
Wed, 1 Jul 2015 23:24:50 +0000 (16:24 -0700)
commita09c094f1a0c8de5c9379dd1931b80c6b057c101
tree4594873757f164644d9c80aed4b6ca393d35b9dc
parenta93384bda3ba6146e4e9972d8803b9a21f7aae6e
check ReadCallback before using it

Summary: before the first setReadCallback(), the readCallback_ is nullptr.  Thanks @siyengar for pointing out this!

Reviewed By: @siyengar

Differential Revision: D2203489
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h