From 7d90b3f802f1d3e0dd177901ebdda0bd756eae38 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 13 Jan 2006 00:54:53 +0000 Subject: r12881: Hard-coded defaults are silly. We have smb.conf for a reason. Andrew Bartlett (This used to be commit c9402f9227a02ff0ee77f264f79ef47207ad50ef) --- source4/libnet/libnet.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source4/libnet/libnet.c') diff --git a/source4/libnet/libnet.c b/source4/libnet/libnet.c index 4b2551b872..c350416895 100644 --- a/source4/libnet/libnet.c +++ b/source4/libnet/libnet.c @@ -24,9 +24,6 @@ struct libnet_context *libnet_context_init(struct event_context *ev) { - /* default name resolution methods */ - const char *nr_methods[] = { "lmhosts", "wins", "host", "bcast", NULL }; - struct libnet_context *ctx; /* create brand new libnet context */ @@ -46,7 +43,7 @@ struct libnet_context *libnet_context_init(struct event_context *ev) ctx->event_ctx = ev; /* name resolution methods */ - ctx->name_res_methods = str_list_copy(ctx, nr_methods); + ctx->name_res_methods = str_list_copy(ctx, lp_name_resolve_order()); return ctx; } -- cgit