]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix metze's complaint about the bugfix for bug #8953 - winbind can hang as nbt_getdc...
authorJeremy Allison <jra@samba.org>
Tue, 29 May 2012 22:25:39 +0000 (15:25 -0700)
committerJeremy Allison <jra@samba.org>
Wed, 30 May 2012 18:59:37 +0000 (11:59 -0700)
This code explicitly isn't needed as the tevent code will take
care of this.

source3/libsmb/clidgram.c

index cfed06794d90b6e06e485495473cbe0ba563c731..377219448bc3a12b10c36bbd50199460c53e1a1b 100644 (file)
@@ -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;
 }