summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-04-29 13:28:48 +0000
committerGerald Carter <jerry@samba.org>2003-04-29 13:28:48 +0000
commitad9a3848a8288803fa752b86fd2aea1a46cf4a7d (patch)
treeb5ad17c1407e1ef4afe9648819fcddf5664cd2ed
parent281d95e2f35f8276d23d075d6e528d16eda9fadc (diff)
downloadsamba-ad9a3848a8288803fa752b86fd2aea1a46cf4a7d.tar.gz
samba-ad9a3848a8288803fa752b86fd2aea1a46cf4a7d.tar.bz2
samba-ad9a3848a8288803fa752b86fd2aea1a46cf4a7d.zip
add version back to lanman string in sessetup reply
(This used to be commit dade462a168abe721c70022546109074961969b6)
-rw-r--r--source3/smbd/sesssetup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index 25f9d424ab..3fa3fa411f 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -60,9 +60,13 @@ static NTSTATUS do_map_to_guest(NTSTATUS status, auth_serversupplied_info **serv
static void add_signature(char *outbuf)
{
char *p;
+ fstring lanman;
+
+ snprintf( lanman, sizeof(lanman), "Samba %s", VERSION );
+
p = smb_buf(outbuf);
p += srvstr_push(outbuf, p, "Unix", -1, STR_TERMINATE);
- p += srvstr_push(outbuf, p, "Samba", -1, STR_TERMINATE);
+ p += srvstr_push(outbuf, p, lanman, -1, STR_TERMINATE);
p += srvstr_push(outbuf, p, lp_workgroup(), -1, STR_TERMINATE);
set_message_end(outbuf,p);
}