1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/lib/tsocket
Andreas Schneider 4524f5986c 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
2016-06-30 02:53:01 +02:00
..
doxy.config
tsocket_bsd.c tsocket: Do not dereference a NULL pointer 2016-06-30 02:53:01 +02:00
tsocket_guide.txt tsocket: Fix a couple of typos and spellings in tsocket_guide.txt 2012-04-17 14:41:52 +02:00
tsocket_helpers.c lib/tsocket: optimize syscalls in tstream_readv_pdu_send() 2012-11-05 17:13:40 +01:00
tsocket_internal.h
tsocket.c
tsocket.h lib/tsocket: add tdgram_inet_udp_broadcast_socket() 2015-06-12 17:08:17 +02:00
wscript_build tsocket: Use common code in tsocket_bsd_common_prepare_fd 2015-06-05 14:33:19 +02:00