mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r15266: Fix bug 3720. I wonder why -O1 compiles did not catch this...
Thanks to Jason Mader for reporting this. Volker
This commit is contained in:
parent
ab5a55ec8b
commit
3e616c3272
@ -433,8 +433,8 @@ int reply_trans(connection_struct *conn, char *inbuf,char *outbuf,
|
||||
|
||||
START_PROFILE(SMBtrans);
|
||||
|
||||
if (!NT_STATUS_IS_OK(allow_new_trans(conn->pending_trans,
|
||||
SVAL(inbuf, smb_mid)))) {
|
||||
result = allow_new_trans(conn->pending_trans, SVAL(inbuf, smb_mid));
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
DEBUG(2, ("Got invalid trans request: %s\n",
|
||||
nt_errstr(result)));
|
||||
END_PROFILE(SMBtrans);
|
||||
|
@ -2827,8 +2827,8 @@ int reply_nttrans(connection_struct *conn,
|
||||
return ERROR_DOS(ERRSRV,ERRaccess);
|
||||
}
|
||||
|
||||
if (!NT_STATUS_IS_OK(allow_new_trans(conn->pending_trans,
|
||||
SVAL(inbuf, smb_mid)))) {
|
||||
result = allow_new_trans(conn->pending_trans, SVAL(inbuf, smb_mid));
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
DEBUG(2, ("Got invalid nttrans request: %s\n", nt_errstr(result)));
|
||||
END_PROFILE(SMBnttrans);
|
||||
return ERROR_NT(result);
|
||||
|
@ -5154,8 +5154,8 @@ int reply_trans2(connection_struct *conn, char *inbuf,char *outbuf,
|
||||
|
||||
START_PROFILE(SMBtrans2);
|
||||
|
||||
if (!NT_STATUS_IS_OK(allow_new_trans(conn->pending_trans,
|
||||
SVAL(inbuf, smb_mid)))) {
|
||||
result = allow_new_trans(conn->pending_trans, SVAL(inbuf, smb_mid));
|
||||
if (!NT_STATUS_IS_OK(result)) {
|
||||
DEBUG(2, ("Got invalid trans2 request: %s\n",
|
||||
nt_errstr(result)));
|
||||
END_PROFILE(SMBtrans2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user