summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorMatthew Chapman <matty@samba.org>1999-01-15 05:09:36 +0000
committerMatthew Chapman <matty@samba.org>1999-01-15 05:09:36 +0000
commit2cc786548b4460525ce2e0bf09209eee48a5ea08 (patch)
treef2011a526e88c8d1cd8b89a065445c3661c3a3af /source3/libsmb
parent837601c9df08266308c37b6afc0bdcb942c572d1 (diff)
downloadsamba-2cc786548b4460525ce2e0bf09209eee48a5ea08.tar.gz
samba-2cc786548b4460525ce2e0bf09209eee48a5ea08.tar.bz2
samba-2cc786548b4460525ce2e0bf09209eee48a5ea08.zip
eclass != ERRDOS && num != ERRmoredata
is not the same as !(eclass == ERRDOS && num == ERRmoredata) This was causing smbclient to segfault on receiving certain errors. (This used to be commit 15bd172530af360cf16ad626330dfe2ea92100df)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 5bae8ffa81..688764fa73 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -345,7 +345,7 @@ static BOOL cli_receive_trans(struct cli_state *cli,int trans,
}
/* DOS error "more data" is an acceptable error code */
- if (cli_error(cli, &eclass, &num) && eclass != ERRDOS && num != ERRmoredata)
+ if (cli_error(cli, &eclass, &num) && !(eclass == ERRDOS && num == ERRmoredata))
{
return(False);
}