s3:libsmb: Check disable_netbios in socket connect
authorJustin Stephenson <jstephen@redhat.com>
Thu, 3 Jan 2019 17:07:01 +0000 (12:07 -0500)
committerNoel Power <npower@samba.org>
Wed, 9 Jan 2019 17:40:44 +0000 (18:40 +0100)
commit78f51a1d3c53248159c1e7643364b62e52457bb9
tree54b70401a5ca146151b05171fbb0211f1081307e
parenta9def5c6971fa1dea3aaa2da0e5dfd9246dd0c87
s3:libsmb: Check disable_netbios in socket connect

If the disable_netbios option is set then return NT_STATUS_NOT_SUPPORTED
for a port 139 connection in the low level socket connection code.

Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Noel Power <nopower@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/smbsock_connect.c