]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
return a more useful error message when no name resolution methods are
authorAndrew Tridgell <tridge@samba.org>
Tue, 30 Sep 2008 04:59:04 +0000 (21:59 -0700)
committerAndrew Tridgell <tridge@samba.org>
Tue, 30 Sep 2008 04:59:04 +0000 (21:59 -0700)
available

source4/libcli/resolve/resolve.c

index d89b50e430fd1fd6428df74cc90dab873185930d..2b14591d68f6c802261a69c05a35eff4085aec7b 100644 (file)
@@ -165,6 +165,10 @@ struct composite_context *resolve_name_send(struct resolve_context *ctx,
        }
 
        state->method = ctx->methods;
+       if (state->method == NULL) {
+               composite_error(c, NT_STATUS_HOST_UNREACHABLE);
+               return c;
+       }
        state->creq = setup_next_method(c);
        if (composite_nomem(state->creq, c)) return c;