1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-20 22:50:26 +03:00

r18358: handle errors in the RPC-LSA async test

(This used to be commit d46c3be9f9db6666be52b5584b0210da925106d1)
This commit is contained in:
Andrew Tridgell 2006-09-11 04:28:34 +00:00 committed by Gerald (Jerry) Carter
parent 2059aa0949
commit 2d60d3b492

View File

@ -525,7 +525,9 @@ static void lookupsids_cb(struct rpc_request *req)
*replies = -1;
}
*replies += 1;
if (*replies >= 0) {
*replies += 1;
}
}
static BOOL test_LookupSids_async(struct dcerpc_pipe *p,
@ -579,16 +581,16 @@ static BOOL test_LookupSids_async(struct dcerpc_pipe *p,
req[i]->async.private = &replies;
}
while (replies < num_async_requests) {
while (replies >= 0 && replies < num_async_requests) {
event_loop_once(p->conn->event_ctx);
if (replies < 0) {
ret = False;
break;
}
}
talloc_free(req);
if (replies < 0) {
ret = False;
}
return ret;
}