Add blackbox test for provisioning code to make sure it can be run more than once...
[samba.git] / source / torture / smbiconv.c
index 1eb09cae45cbcfb5d7d1bbd9cfe75858af986ac9..4eece66bdf6b8b63b9c71fa99bf853ca624f962d 100644 (file)
@@ -205,7 +205,7 @@ int main(int argc, char *argv[])
                }
        }
 
-       cd = smb_iconv_open(to, from, lp_parm_bool(tctx->lp_ctx, NULL, "iconv", "native", true));
+       cd = smb_iconv_open_ex(tctx, to, from, lp_parm_bool(tctx->lp_ctx, NULL, "iconv", "native", true));
        if((int)cd == -1) {
                DEBUG(0,("unable to find from or to encoding, exiting...\n"));
                return 1;