summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-13 00:54:53 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:50:57 -0500
commit7d90b3f802f1d3e0dd177901ebdda0bd756eae38 (patch)
tree6356ca6b3233692d246064f95015230410e5c104 /source4
parenta7a79d2b256c97bd6ffa6e9740d14366ebc7602e (diff)
downloadsamba-7d90b3f802f1d3e0dd177901ebdda0bd756eae38.tar.gz
samba-7d90b3f802f1d3e0dd177901ebdda0bd756eae38.tar.bz2
samba-7d90b3f802f1d3e0dd177901ebdda0bd756eae38.zip
r12881: Hard-coded defaults are silly. We have smb.conf for a reason.
Andrew Bartlett (This used to be commit c9402f9227a02ff0ee77f264f79ef47207ad50ef)
Diffstat (limited to 'source4')
-rw-r--r--source4/libnet/libnet.c5
1 files changed, 1 insertions, 4 deletions
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;
}