tsocket: Do not dereference a NULL pointer
authorAndreas Schneider <asn@samba.org>
Wed, 22 Jun 2016 13:36:59 +0000 (15:36 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jun 2016 00:53:01 +0000 (02:53 +0200)
commit4524f5986c3cc6430fcc2ddae6970a62b3f22ac8
treea9ced0f371c43dab0ee3854f7bbb5d953b265a3d
parent1d4b20d4f3829eb3778006397990cd9fee4966a5
tsocket: Do not dereference a NULL pointer

Make sure the lrbsda pointer is not allocated and we will
not end up dereferencing a NULL pointer. In practice this
can't happen, but this change links the pointer with the
code that uses it.

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun 30 02:53:02 CEST 2016 on sn-devel-144
lib/tsocket/tsocket_bsd.c