summaryrefslogtreecommitdiff
path: root/nsswitch/wins.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-10-23 15:28:23 +0200
committerVolker Lendecke <vl@samba.org>2015-10-26 21:23:21 +0100
commit0abbfb2e4d5bcd847983ef7981840f1eab7b917c (patch)
tree5eac6c85cb78372197062c17d93697a0f39a658e /nsswitch/wins.c
parent0d962e010ea834c0479f403a4c8b38b05b7a0409 (diff)
downloadsamba-0abbfb2e4d5bcd847983ef7981840f1eab7b917c.tar.gz
nss_wins: Use lp_global_no_reinit()
This avoids that we run into use after free issues when we access memory allocated on the globals and the global being reinitialized. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11563 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'nsswitch/wins.c')
-rw-r--r--nsswitch/wins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/wins.c b/nsswitch/wins.c
index 735a9a27dd7..587ec30f830 100644
--- a/nsswitch/wins.c
+++ b/nsswitch/wins.c
@@ -52,7 +52,7 @@ static void nss_wins_init(void)
TimeInit();
setup_logging("nss_wins",False);
- lp_load_global(get_dyn_CONFIGFILE());
+ lp_load_global_no_reinit(get_dyn_CONFIGFILE());
load_interfaces();
}