summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/include/smb.h1
-rw-r--r--source3/smbd/lanman.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index a5ace1eb4d..7fe36edee9 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -173,6 +173,7 @@ implemented */
#define ERRmoredata 234 /* More data to be returned */
#define ERRbaddirectory 267 /* Invalid directory name in a path. */
#define ERRunknownipc 2142
+#define ERRbuftoosmall 2123
#define ERROR_INVALID_FUNCTION (1)
#define ERROR_ACCESS_DENIED (5)
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;