summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-03-17 00:37:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:56:04 -0500
commit3fc141baace52635dd5757f6b9d997c37f87deca (patch)
tree0ecd448fa7eb0b3a09accf74d51e70fd32668fc7
parentc6e94efcec91d6d64b451fa3da8aeab58dc295b8 (diff)
downloadsamba-3fc141baace52635dd5757f6b9d997c37f87deca.tar.gz
samba-3fc141baace52635dd5757f6b9d997c37f87deca.tar.bz2
samba-3fc141baace52635dd5757f6b9d997c37f87deca.zip
r5840: Fix findfirst/findnext with protocol level < NT1.
Jeremy. (This used to be commit d53b5891a7d372b3ed2488bac06939d29388f709)
-rw-r--r--source3/libsmb/clitrans.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/libsmb/clitrans.c b/source3/libsmb/clitrans.c
index 3f1afa75d6..27da63ccda 100644
--- a/source3/libsmb/clitrans.c
+++ b/source3/libsmb/clitrans.c
@@ -195,11 +195,12 @@ BOOL cli_receive_trans(struct cli_state *cli,int trans,
/*
* An NT RPC pipe call can return ERRDOS, ERRmoredata
* to a trans call. This is not an error and should not
- * be treated as such.
+ * be treated as such. Note that STATUS_NO_MORE_FILES is
+ * returned when a trans2 findfirst/next finishes.
*/
status = cli_nt_error(cli);
- if (NT_STATUS_IS_ERR(status)) {
+ if (NT_STATUS_IS_ERR(status) || NT_STATUS_EQUAL(status,STATUS_NO_MORE_FILES)) {
cli_signing_trans_stop(cli);
return False;
}