From: Andrew Tridgell Date: Tue, 30 Sep 2008 04:59:04 +0000 (-0700) Subject: return a more useful error message when no name resolution methods are X-Git-Tag: samba-4.0.0alpha6~769^2~228^2~98 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8104968004a3a7fcfe4febb9918ecbf37ba948ac;p=thirdparty%2Fsamba.git return a more useful error message when no name resolution methods are available --- diff --git a/source4/libcli/resolve/resolve.c b/source4/libcli/resolve/resolve.c index d89b50e430f..2b14591d68f 100644 --- a/source4/libcli/resolve/resolve.c +++ b/source4/libcli/resolve/resolve.c @@ -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;