1
0
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:
Volker Lendecke 2006-04-26 09:43:39 +00:00 committed by Gerald (Jerry) Carter
parent ab5a55ec8b
commit 3e616c3272
3 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);