s3-libsmb/clidfs.c: remove cli_nt_error()
authorBjörn Baumbach <bb@sernet.de>
Wed, 16 Nov 2011 15:37:24 +0000 (16:37 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Nov 2011 18:02:12 +0000 (19:02 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/libsmb/clidfs.c

index b066b8bd1203a16e5a2d34893483576e42ebd05f..4d0e97a9b5a2ef05363d24e3a420b9091e60ff4b 100644 (file)
@@ -173,8 +173,8 @@ static NTSTATUS do_connect(TALLOC_CTX *ctx,
                                               lp_workgroup()))) {
                        d_printf("session setup failed: %s\n",
                                 nt_errstr(status));
-                       if (NT_STATUS_V(cli_nt_error(c)) ==
-                           NT_STATUS_V(NT_STATUS_MORE_PROCESSING_REQUIRED))
+                       if (NT_STATUS_EQUAL(status,
+                                           NT_STATUS_MORE_PROCESSING_REQUIRED))
                                d_printf("did you forget to run kinit?\n");
                        cli_shutdown(c);
                        return status;