mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s4-loadparm: call reload_charcnv() also for a missing smb.conf
bin/net vampire with a missing smb.conf would segfault as the iconv convenience pointer had not been setup.
This commit is contained in:
parent
7f16da7473
commit
b11b22752a
@ -2552,6 +2552,10 @@ bool lp_load(struct loadparm_context *lp_ctx, const char *filename)
|
||||
|
||||
bRetval = bRetval && lp_update(lp_ctx);
|
||||
|
||||
/* we do this unconditionally, so that it happens even
|
||||
for a missing smb.conf */
|
||||
reload_charcnv(lp_ctx);
|
||||
|
||||
return bRetval;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user