summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-11-16 19:08:55 +0000
committerJeremy Allison <jra@samba.org>2000-11-16 19:08:55 +0000
commit9df3d64a2cdb2eafad5f597850f1a2fda8b1f8d2 (patch)
treecefd27f1a096b44c597b996f1921cf43a9d16b93 /source3/smbd
parent4a205df72077d89e06db8a82f1ccc7200300f6b1 (diff)
downloadsamba-9df3d64a2cdb2eafad5f597850f1a2fda8b1f8d2.tar.gz
samba-9df3d64a2cdb2eafad5f597850f1a2fda8b1f8d2.tar.bz2
samba-9df3d64a2cdb2eafad5f597850f1a2fda8b1f8d2.zip
Fix from Jim McDonough @ IBM for OS/2 clients.
Jeremy. (This used to be commit f571e1efd01c7b1b500a833df3bd074a8c4c65ec)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/lanman.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c
index fe6b22a9bf..51472ea309 100644
--- a/source3/smbd/lanman.c
+++ b/source3/smbd/lanman.c
@@ -201,7 +201,17 @@ static BOOL init_package(struct pack_desc* p, int count, int subcount)
if (i > n) {
p->neededlen = i;
i = n = 0;
+#if 0
+ /*
+ * This is the old error code we used. Aparently
+ * WinNT/2k systems return ERRbuftoosmall (2123) and
+ * OS/2 needs this. I'm leaving this here so we can revert
+ * if needed. JRA.
+ */
p->errcode = ERRmoredata;
+#else
+ p->errcode = ERRbuftoosmall;
+#endif
}
else
p->errcode = NERR_Success;