swrap: Add missing NULL checks to socket_wrapper_dir()
authorAndreas Schneider <asn@samba.org>
Thu, 21 Mar 2019 13:09:37 +0000 (14:09 +0100)
committerAndreas Schneider <asn@samba.org>
Thu, 21 Mar 2019 13:41:39 +0000 (14:41 +0100)
commit51d8982627f0da1715d196fd75ec17d6579a57b0
tree7d14a0977c200528c52e9074a48f9af963ba67a7
parentb8dc4da6cb4903fce8f7b468c17caf12e3394c6b
swrap: Add missing NULL checks to socket_wrapper_dir()

This return either malloc'ed memory or NULL. Make sure there is no
problem.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
src/socket_wrapper.c