s3/libsmb: Use smbXcli_conn_use_unicode instead of smb1 specific test
authorLuk Claes <luk@debian.org>
Fri, 17 May 2013 18:13:50 +0000 (20:13 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 17 Oct 2013 13:54:12 +0000 (15:54 +0200)
Signed-off-by: Luk Claes <luk@debian.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/libsmb/clidfs.c

index 57126e62338b46c78ae8febe77d6256f5d29c434..e311adab27351478046d38e5592f50b0b507c957 100644 (file)
@@ -622,7 +622,7 @@ static bool cli_dfs_check_error(struct cli_state *cli, NTSTATUS expected,
 {
        /* only deal with DS when we negotiated NT_STATUS codes and UNICODE */
 
-       if (!(smb1cli_conn_capabilities(cli->conn) & CAP_UNICODE)) {
+       if (!(smbXcli_conn_use_unicode(cli->conn))) {
                return false;
        }
        if (!(smb1cli_conn_capabilities(cli->conn) & CAP_STATUS32)) {