summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-05-22 13:14:55 +1000
committerAndrew Tridgell <tridge@samba.org>2008-05-22 13:14:55 +1000
commit72739ac0d0bdd965264a69a6e796fd412b42d628 (patch)
treed4b5c0b0f6c198781de62dc7989ce1c2d09a3a83 /source4/smb_server
parent7ba8dca59094eb83cbcec4011b0ec632956f27af (diff)
downloadsamba-72739ac0d0bdd965264a69a6e796fd412b42d628.tar.gz
samba-72739ac0d0bdd965264a69a6e796fd412b42d628.tar.bz2
samba-72739ac0d0bdd965264a69a6e796fd412b42d628.zip
badly formed SMB2 packets get NT_STATUS_INVALID_PARAMETER
(This used to be commit 1c5dd2d1b655218f875a4e512ed3e94fee624fe4)
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb2/smb2_server.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/smb_server/smb2/smb2_server.h b/source4/smb_server/smb2/smb2_server.h
index fc40a92efc..ae4abbd71e 100644
--- a/source4/smb_server/smb2/smb2_server.h
+++ b/source4/smb_server/smb2/smb2_server.h
@@ -78,13 +78,13 @@ struct smbsrv_request;
if (is_size < (size)) { \
DEBUG(0,("%s: buffer too small 0x%x. Expected 0x%x\n", \
__location__, (unsigned)is_size, (unsigned)want_size)); \
- smb2srv_send_error(req, NT_STATUS_FOOBAR); \
+ smb2srv_send_error(req, NT_STATUS_INVALID_PARAMETER); \
return; \
}\
if (field_size != want_size) { \
DEBUG(0,("%s: unexpected fixed body size 0x%x. Expected 0x%x\n", \
__location__, (unsigned)field_size, (unsigned)want_size)); \
- smb2srv_send_error(req, NT_STATUS_FOOBAR); \
+ smb2srv_send_error(req, NT_STATUS_INVALID_PARAMETER); \
return; \
} \
} while (0)