s3:libsmb/clidfs: make use of cli_state_encryption_on()
authorStefan Metzmacher <metze@samba.org>
Tue, 2 Aug 2011 20:54:28 +0000 (22:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 3 Aug 2011 07:01:39 +0000 (09:01 +0200)
metze

source3/libsmb/clidfs.c

index e54da6fe8950271b0b210ea7549a1c4ee57bbb51..a445649aeda5cd9cf814c40f281c3f71b742386c 100644 (file)
@@ -857,7 +857,7 @@ NTSTATUS cli_resolve_path(TALLOC_CTX *ctx,
                             "IPC$",
                             dfs_auth_info,
                             false,
-                            (rootcli->trans_enc_state != NULL),
+                            cli_state_encryption_on(rootcli),
                             cli_state_protocol(rootcli),
                             0,
                             0x20,
@@ -908,7 +908,7 @@ NTSTATUS cli_resolve_path(TALLOC_CTX *ctx,
                             share,
                             dfs_auth_info,
                             false,
-                            (rootcli->trans_enc_state != NULL),
+                            cli_state_encryption_on(rootcli),
                             cli_state_protocol(rootcli),
                             0,
                             0x20,