1 |
vip-ire |
1.1 |
From 5ae47e9173931fedd6b3adb04ff94b772587fa2a Mon Sep 17 00:00:00 2001 |
2 |
|
|
From: Andreas Schneider <asn@samba.org> |
3 |
|
|
Date: Fri, 23 Oct 2015 15:28:23 +0200 |
4 |
|
|
Subject: [PATCH] nss_wins: Use lp_global_no_reinit() |
5 |
|
|
|
6 |
|
|
This avoids that we run into use after free issues when we access memory |
7 |
|
|
allocated on the globals and the global being reinitialized. |
8 |
|
|
|
9 |
|
|
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11563 |
10 |
|
|
|
11 |
|
|
Signed-off-by: Andreas Schneider <asn@samba.org> |
12 |
|
|
Reviewed-by: Volker Lendecke <vl@samba.org> |
13 |
|
|
|
14 |
|
|
(cherry picked from commit 0abbfb2e4d5bcd847983ef7981840f1eab7b917c) |
15 |
|
|
--- |
16 |
|
|
nsswitch/wins.c | 2 +- |
17 |
|
|
1 file changed, 1 insertion(+), 1 deletion(-) |
18 |
|
|
|
19 |
|
|
diff --git a/nsswitch/wins.c b/nsswitch/wins.c |
20 |
|
|
index d63968b..6b5c3e2 100644 |
21 |
|
|
--- a/nsswitch/wins.c |
22 |
|
|
+++ b/nsswitch/wins.c |
23 |
|
|
@@ -53,7 +53,7 @@ static void nss_wins_init(void) |
24 |
|
|
|
25 |
|
|
TimeInit(); |
26 |
|
|
setup_logging("nss_wins",False); |
27 |
|
|
- lp_load(get_dyn_CONFIGFILE(),True,False,False,True); |
28 |
|
|
+ lp_load_global_no_reinit(get_dyn_CONFIGFILE()); |
29 |
|
|
load_interfaces(); |
30 |
|
|
} |
31 |
|
|
|
32 |
|
|
-- |
33 |
|
|
2.6.2 |
34 |
|
|
|