summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/resolve/resolve.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/resolve/resolve.c b/source4/libcli/resolve/resolve.c
index 7e3f78edb4..82268dc953 100644
--- a/source4/libcli/resolve/resolve.c
+++ b/source4/libcli/resolve/resolve.c
@@ -101,7 +101,7 @@ static struct composite_context *setup_next_method(struct composite_context *c)
if (method) {
req = method->send_fn(&state->name, c->event_ctx);
}
- if (req == NULL) state->methods++;
+ if (req == NULL && state->methods[0]) state->methods++;
} while (!req && state->methods[0]);
if (req) {