1
0
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:
Andrew Tridgell 2009-12-14 17:54:04 +11:00
parent 7f16da7473
commit b11b22752a

View File

@ -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;
}