badly formed SMB2 packets get NT_STATUS_INVALID_PARAMETER
authorAndrew Tridgell <tridge@samba.org>
Thu, 22 May 2008 03:14:55 +0000 (13:14 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 22 May 2008 03:14:55 +0000 (13:14 +1000)
(This used to be commit 1c5dd2d1b655218f875a4e512ed3e94fee624fe4)

source4/smb_server/smb2/smb2_server.h

index fc40a92efcfb6f0c25facfb4cb77f820e4649f44..ae4abbd71e1b440cdadff6cd849447ff0baef649 100644 (file)
@@ -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)