1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

Eliminate valgrind error when client gets bad sig on list. Some reformatting.

Jeremy.
This commit is contained in:
Jeremy Allison
-
parent f8abdd23e1
commit b8f6b83646
2 changed files with 25 additions and 12 deletions

View File

@ -371,6 +371,9 @@ BOOL cli_is_error(struct cli_state *cli)
{
uint32 flgs2 = SVAL(cli->inbuf,smb_flg2), rcls = 0;
if (cli->fd == -1 && cli->smb_rw_error != 0)
return True;
if (flgs2 & FLAGS2_32_BIT_ERROR_CODES) {
/* Return error is error bits are set */
rcls = IVAL(cli->inbuf, smb_rcls);