mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
e30607aff3
On receiving a special NBT packet (e.g. session setup) the samba daemon effectively sets up SMB1 as the negotiated protocol (in terms of software handling of the messages) even though no SMB protocol has yet been negotiated. If the next message after the nbt session setup is a SMB2 message it will be handled by the SMB1 callbacks and will be rejected. This is evident when using smbclient (with -p 139) option in an env where SMB1 cannot be negotiated [*] This change doesn't set up the SMB1 callbacks on receipt of NBT special messages but lets the generic callback in place. Once either SMB1 (or) SMB2 is established (by receipt of a 'real' SMB or >=SMB2 message) then the proper callbacks will be set as normal. Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Dec 5 18:44:40 UTC 2019 on sn-devel-184 |
||
---|---|---|
.. | ||
smb | ||
smb2 | ||
blob.c | ||
handle.c | ||
management.c | ||
service_smb.c | ||
session.c | ||
smb_server.c | ||
smb_server.h | ||
tcon.c | ||
wscript_build |