summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/netlogon.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-09-20 10:40:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:58:54 -0500
commit6b9b169c2746c0223f249700d7ff8a70feb8da62 (patch)
treef7064839446cccbbf5aa5a026677dc9be0145d21 /source4/torture/rpc/netlogon.c
parent8f85b3f77132279d8e79ff9a8a213515a3845fe0 (diff)
downloadsamba-6b9b169c2746c0223f249700d7ff8a70feb8da62.tar.gz
samba-6b9b169c2746c0223f249700d7ff8a70feb8da62.tar.bz2
samba-6b9b169c2746c0223f249700d7ff8a70feb8da62.zip
r2443: check return code of event_loop_once() to catch thet cases where the server
closes the connetion and we got EBADF from select() and event_loop_once() fails metze (This used to be commit 9c0e50a6f3d628156b4543d5ded89e06be696f64)
Diffstat (limited to 'source4/torture/rpc/netlogon.c')
-rw-r--r--source4/torture/rpc/netlogon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c
index fba39c14c9..6e4f85be40 100644
--- a/source4/torture/rpc/netlogon.c
+++ b/source4/torture/rpc/netlogon.c
@@ -1706,7 +1706,9 @@ static BOOL test_GetDomainInfo_async(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
/* even with this flush per request a w2k3 server seems to
clag with multiple outstanding requests. bleergh. */
- event_loop_once(dcerpc_event_context(p));
+ if (event_loop_once(dcerpc_event_context(p)) != 0) {
+ return False;
+ }
}
for (i=0;i<ASYNC_COUNT;i++) {