From 181cd3281c4f2c53dc507f59d281a2517579cfe1 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 28 Dec 2010 17:05:18 +0100 Subject: [PATCH] Fix a crash in libnss_wins lp_set_parm accesses the case tables --- nsswitch/wins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsswitch/wins.c b/nsswitch/wins.c index 731efcb4481..276724dc36f 100644 --- a/nsswitch/wins.c +++ b/nsswitch/wins.c @@ -94,11 +94,11 @@ static int wins_lookup_open_socket_in(void) static void nss_wins_init(void) { initialised = 1; + load_case_tables(); lp_set_cmdline("log level", "0"); TimeInit(); setup_logging("nss_wins",False); - load_case_tables(); lp_load(get_dyn_CONFIGFILE(),True,False,False,True); load_interfaces(); }