summaryrefslogtreecommitdiff
path: root/source3/libsmb/clierror.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-07-30 18:57:37 +0000
committerJeremy Allison <jra@samba.org>2003-07-30 18:57:37 +0000
commit5ab2b1e9219a99b8e3b01a977e0703e76b57debb (patch)
treeeecec24b54651da6aaf3002a6a284216eef1faaf /source3/libsmb/clierror.c
parentc856d9274b1a434b9ef02718e5036b224e350b11 (diff)
downloadsamba-5ab2b1e9219a99b8e3b01a977e0703e76b57debb.tar.gz
samba-5ab2b1e9219a99b8e3b01a977e0703e76b57debb.tar.bz2
samba-5ab2b1e9219a99b8e3b01a977e0703e76b57debb.zip
Eliminate valgrind error when client gets bad sig on list. Some reformatting.
Jeremy. (This used to be commit b8f6b836468b3a0ae75977dc65cae8400f74734c)
Diffstat (limited to 'source3/libsmb/clierror.c')
-rw-r--r--source3/libsmb/clierror.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index 656671823c..c27e1955e2 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/libsmb/clierror.c
@@ -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);