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:
parent
2059aa0949
commit
2d60d3b492
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user