summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-09 09:51:33 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-09 12:40:27 +0200
commitc55bfc0733dd4be99c17ff8ee60c8e669c12bc3f (patch)
tree7fbfc8ef362df1ff6ca5aeb971a3bf953e8e5fac
parenta9f03f198292f9e88647c3e2c3491e68bab3e9cf (diff)
downloadsamba-c55bfc0733dd4be99c17ff8ee60c8e669c12bc3f.tar.gz
samba-c55bfc0733dd4be99c17ff8ee60c8e669c12bc3f.tar.bz2
samba-c55bfc0733dd4be99c17ff8ee60c8e669c12bc3f.zip
s3:smb2cli_base: keep the order of pending requests
metze
-rw-r--r--source3/libsmb/smb2cli_base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/smb2cli_base.c b/source3/libsmb/smb2cli_base.c
index af2d10026d..b12e939a39 100644
--- a/source3/libsmb/smb2cli_base.c
+++ b/source3/libsmb/smb2cli_base.c
@@ -77,8 +77,8 @@ static void smb2cli_req_unset_pending(struct tevent_req *req)
/*
* Remove ourselves from the cli->pending array
*/
- if (num_pending > 1) {
- cli->pending[i] = cli->pending[num_pending-1];
+ for (; i < (num_pending - 1); i++) {
+ cli->pending[i] = cli->pending[i+1];
}
/*