diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-12-13 10:44:07 +0100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2013-01-09 09:11:20 +0100 |
commit | 5d721de7fdc250c6cb423c553134dd687590c1a0 (patch) | |
tree | 37856d3d7ed1f00da4ea11cd0a594b83386f1c94 /source3 | |
parent | 4d1fd0b7daa089bd8863f0efcaf258bf30192c29 (diff) | |
download | samba-5d721de7fdc250c6cb423c553134dd687590c1a0.tar.gz samba-5d721de7fdc250c6cb423c553134dd687590c1a0.tar.bz2 samba-5d721de7fdc250c6cb423c553134dd687590c1a0.zip |
s3:smb2_negprot: set the 'remote_proto' value
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/smb2_negprot.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/smb2_negprot.c b/source3/smbd/smb2_negprot.c index 6adc5819ec..963a557253 100644 --- a/source3/smbd/smb2_negprot.c +++ b/source3/smbd/smb2_negprot.c @@ -25,6 +25,8 @@ #include "../lib/tsocket/tsocket.h" #include "../librpc/ndr/libndr.h" +extern fstring remote_proto; + /* * this is the entry point if SMB2 is selected via * the SMB negprot and the given dialect. @@ -234,6 +236,12 @@ NTSTATUS smbd_smb2_request_process_negprot(struct smbd_smb2_request *req) set_remote_arch(RA_VISTA); } + fstr_sprintf(remote_proto, "SMB%X_%02X", + (dialect >> 8) & 0xFF, dialect & 0xFF); + + reload_services(req->sconn, conn_snum_used, true); + DEBUG(3,("Selected protocol %s\n", remote_proto)); + /* negprot_spnego() returns a the server guid in the first 16 bytes */ negprot_spnego_blob = negprot_spnego(req, req->sconn); if (negprot_spnego_blob.data == NULL) { |