summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/libcli/resolve/resolve.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source4/libcli/resolve/resolve.c b/source4/libcli/resolve/resolve.c
index ef906d4ed0..054f10d529 100644
--- a/source4/libcli/resolve/resolve.c
+++ b/source4/libcli/resolve/resolve.c
@@ -99,10 +99,8 @@ static struct smbcli_composite *setup_next_method(struct smbcli_composite *c)
const struct resolve_method *method = find_method(state->methods[0]);
if (method) {
req = method->send_fn(&state->name, c->event_ctx);
- if (req == NULL) {
- state->methods++;
- }
}
+ if (req == NULL) state->methods++;
} while (!req && state->methods[0]);
if (req) {