From 5ffedbac3d06ef852508dde3924841a86b802295 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 22 Jan 2005 02:08:30 +0000 Subject: r4922: fixed an infinite loop in the name resolve code when handling a method in smb.conf that isn't implemented in the library (This used to be commit dd5b43ed37b37feec4708f8f13033b42eb6a838c) --- source4/libcli/resolve/resolve.c | 4 +--- 1 file changed, 1 insertion(+), 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) { -- cgit