Fix coverity NULL deref in previous patch
Bug 727511 - ldclt SSL search requests are failing with "illegal error number -1" error
Fix coverity NULL deref in previous patch
(cherry picked from commit cf7c2133b4197f6da8c4f8ee436042a44bf7afc8)
(cherry picked from commit bd6785dd6e7ec03bcb088a10bcb7c6f32a99b367)
(cherry picked from commit 3e2f34e23501327cbc1d652c1df00da38e0a34fc)