r26429: Avoid use of global_smb_iconv_convenience.
[samba.git] / source4 / torture / rpc / samba3rpc.c
index 496453e1812c13c30ee2c2903425d0b957f99ad1..a63772e96410ac47b388a32e74ccbcf29a5dcf6d 100644 (file)
@@ -2314,7 +2314,7 @@ static NTSTATUS get_servername(TALLOC_CTX *mem_ctx, struct smbcli_tree *tree,
        memcpy(servername, r.out.info.info0.name, 16);
        servername[16] = '\0';
 
-       if (pull_ascii_talloc(mem_ctx, global_smb_iconv_convenience
+       if (pull_ascii_talloc(mem_ctx, lp_iconv_convenience(global_loadparm)
                              name, servername) < 0) {
                return NT_STATUS_NO_MEMORY;
        }