r16456: return on error...
[jra/samba/.git] / source4 / smb_server / smb2 / smb2_server.h
index 57563cf0f5dc1a46ed95d66ca35f98f101ab5c0c..f3ac78dee3a21879c7023a9f9272a7022058871b 100644 (file)
@@ -70,11 +70,13 @@ struct smbsrv_request;
                DEBUG(0,("%s: buffer too small 0x%x. Expected 0x%x\n", \
                         __location__, is_size, want_size)); \
                smb2srv_send_error(req,  NT_STATUS_FOOBAR); \
+               return; \
        }\
        if (field_size != want_size) { \
                DEBUG(0,("%s: unexpected fixed body size 0x%x. Expected 0x%x\n", \
                         __location__, field_size, want_size)); \
                smb2srv_send_error(req,  NT_STATUS_FOOBAR); \
+               return; \
        } \
 } while (0)