From d7e52cc5273c3ec1a0570f06610e30b48c03bf6b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 29 May 2012 15:25:39 -0700 Subject: Fix metze's complaint about the bugfix for bug #8953 - winbind can hang as nbt_getdc() has no timeout. This code explicitly isn't needed as the tevent code will take care of this. --- source3/libsmb/clidgram.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'source3/libsmb/clidgram.c') diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c index cfed06794d..377219448b 100644 --- a/source3/libsmb/clidgram.c +++ b/source3/libsmb/clidgram.c @@ -450,8 +450,6 @@ NTSTATUS nbt_getdc(struct messaging_context *msg_ctx, TALLOC_CTX *frame = talloc_stackframe(); struct tevent_context *ev; struct tevent_req *req; - enum tevent_req_state err_state; - uint64_t error; NTSTATUS status = NT_STATUS_NO_MEMORY; ev = tevent_context_init(frame); @@ -473,11 +471,6 @@ NTSTATUS nbt_getdc(struct messaging_context *msg_ctx, status = nbt_getdc_recv(req, mem_ctx, pnt_version, dc_name, samlogon_response); fail: - if (ev && req && - tevent_req_is_error(req, &err_state, &error) && - err_state == TEVENT_REQ_TIMED_OUT) { - status = NT_STATUS_IO_TIMEOUT; - } TALLOC_FREE(frame); return status; } -- cgit