summaryrefslogtreecommitdiff
path: root/source3/libsmb/clilist.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-09-05 11:32:59 +0000
committerAndrew Tridgell <tridge@samba.org>2001-09-05 11:32:59 +0000
commitd53d5beeb29c0024556aae2f66f1d5bfe63960e5 (patch)
tree0b362c3ab60bf8bfeb6c3221d1627aa0b40d89df /source3/libsmb/clilist.c
parent851a06e1fd6ac0d921f96fe9e9529129b4b4c01d (diff)
downloadsamba-d53d5beeb29c0024556aae2f66f1d5bfe63960e5.tar.gz
samba-d53d5beeb29c0024556aae2f66f1d5bfe63960e5.tar.bz2
samba-d53d5beeb29c0024556aae2f66f1d5bfe63960e5.zip
use cli_is_error() instead of looking in smb_rcls, otherwise NT status
codes don't work correctly (This used to be commit 55d5828e608671f070a9e96938be0d16d50aeb26)
Diffstat (limited to 'source3/libsmb/clilist.c')
-rw-r--r--source3/libsmb/clilist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index 562e1710d3..a99bc91bfb 100644
--- a/source3/libsmb/clilist.c
+++ b/source3/libsmb/clilist.c
@@ -408,7 +408,7 @@ int cli_list_old(struct cli_state *cli,const char *Mask,uint16 attribute,
num_received += received;
- if (CVAL(cli->inbuf,smb_rcls) != 0) break;
+ if (cli_is_error(cli)) break;
}
if (!first) {
@@ -436,7 +436,7 @@ int cli_list_old(struct cli_state *cli,const char *Mask,uint16 attribute,
cli_setup_bcc(cli, p);
cli_send_smb(cli);
if (!cli_receive_smb(cli)) {
- DEBUG(0,("Error closing search: %s\n",smb_errstr(cli->inbuf)));
+ DEBUG(0,("Error closing search: %s\n",cli_errstr(cli)));
}
}