r4922: fixed an infinite loop in the name resolve code when handling a method
authorAndrew Tridgell <tridge@samba.org>
Sat, 22 Jan 2005 02:08:30 +0000 (02:08 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:09:06 +0000 (13:09 -0500)
in smb.conf that isn't implemented in the library
(This used to be commit dd5b43ed37b37feec4708f8f13033b42eb6a838c)

source4/libcli/resolve/resolve.c

index ef906d4ed00b26e8d31570e0c305b97ed1fb9371..054f10d529c775c73ad30ce8ba4ee566029e4845 100644 (file)
@@ -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) {