summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-15 06:34:32 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-15 06:34:32 +0000
commitc3221b8377e267133b7c04d78d98d806c54da599 (patch)
tree314046d02e79431eef504f706cbe106b26338b7a /source3
parentef07127b3014742550b15cb163b595bafeebafb5 (diff)
downloadsamba-c3221b8377e267133b7c04d78d98d806c54da599.tar.gz
samba-c3221b8377e267133b7c04d78d98d806c54da599.tar.bz2
samba-c3221b8377e267133b7c04d78d98d806c54da599.zip
Found by my new checking code (yet to be commited):
Allow a service longer than 4 characters in CORE tcon. Andrew Bartlett (This used to be commit b56613c1cc13ebd5c9ba11a35d2f96c4c3eb0628)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index fb730bc625..80f648981a 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -161,7 +161,7 @@ int reply_tcon(connection_struct *conn,
*service_buf = *password = *dev = 0;
p = smb_buf(inbuf)+1;
- p += srvstr_pull_buf(inbuf, service_buf, p, sizeof(service), STR_TERMINATE) + 1;
+ p += srvstr_pull_buf(inbuf, service_buf, p, sizeof(service_buf), STR_TERMINATE) + 1;
pwlen = srvstr_pull_buf(inbuf, password, p, sizeof(password), STR_TERMINATE) + 1;
p += pwlen;
p += srvstr_pull_buf(inbuf, dev, p, sizeof(dev), STR_TERMINATE) + 1;