summaryrefslogtreecommitdiffstats
path: root/source
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
commit15bd172530af360cf16ad626330dfe2ea92100df (patch)
tree733ae6d954704adca284c2c431bf2e0b18db908e /source
parent2b6f4818858d422399321064245a36be1dba9738 (diff)
downloadsamba-15bd172530af360cf16ad626330dfe2ea92100df.tar.gz
samba-15bd172530af360cf16ad626330dfe2ea92100df.tar.xz
samba-15bd172530af360cf16ad626330dfe2ea92100df.zip
eclass != ERRDOS && num != ERRmoredata
is not the same as !(eclass == ERRDOS && num == ERRmoredata) This was causing smbclient to segfault on receiving certain errors.
Diffstat (limited to 'source')
-rw-r--r--source/libsmb/clientgen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libsmb/clientgen.c b/source/libsmb/clientgen.c
index 5bae8ffa81c..688764fa732 100644
--- a/source/libsmb/clientgen.c
+++ b/source/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);
}