Remove dependency of charset code on loadparm.
[kai/samba.git] / source4 / param / loadparm.c
index fb8afe456cd740e627feaf10739ae6e5bd08c212..a019c951de7eb76004c4c6dcb6996f67c894f5cb 100644 (file)
@@ -2608,7 +2608,7 @@ struct smb_iconv_convenience *lp_iconv_convenience(struct loadparm_context *lp_c
 _PUBLIC_ void reload_charcnv(struct loadparm_context *lp_ctx)
 {
        talloc_free(lp_ctx->iconv_convenience);
 _PUBLIC_ void reload_charcnv(struct loadparm_context *lp_ctx)
 {
        talloc_free(lp_ctx->iconv_convenience);
-       lp_ctx->iconv_convenience = smb_iconv_convenience_init_lp(lp_ctx, lp_ctx);
+       global_iconv_convenience = lp_ctx->iconv_convenience = smb_iconv_convenience_init_lp(lp_ctx, lp_ctx);
 }
 
 void lp_smbcli_options(struct loadparm_context *lp_ctx,
 }
 
 void lp_smbcli_options(struct loadparm_context *lp_ctx,