Skip to content

Commit

Permalink
nss_wins: Use lp_global_no_reinit()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Volker Lendecke <[email protected]>
  • Loading branch information
cryptomilk authored and vlendec committed Oct 26, 2015
1 parent 0d962e0 commit 0abbfb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nsswitch/wins.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 0abbfb2

Please sign in to comment.