From 69bbc374b1556d8d06b50ac02aee65a7b04e3798 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 16 Aug 2006 17:33:47 +0000 Subject: r17572: Fix the build (This used to be commit acf237b3cd1b546c2744447d977d36a8e3ed4d10) --- source3/client/smbmount.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/client/smbmount.c') diff --git a/source3/client/smbmount.c b/source3/client/smbmount.c index f1cd81198f..56b7e9e623 100644 --- a/source3/client/smbmount.c +++ b/source3/client/smbmount.c @@ -211,14 +211,14 @@ static struct cli_state *do_connection(char *the_service) c->force_dos_errors = True; } - if (!cli_session_setup(c, username, - password, strlen(password), - password, strlen(password), - workgroup)) { + if (!NT_STATUS_IS_OK(cli_session_setup(c, username, + password, strlen(password), + password, strlen(password), + workgroup))) { /* if a password was not supplied then try again with a null username */ if (password[0] || !username[0] || - !cli_session_setup(c, "", "", 0, "", 0, workgroup)) { + !NT_STATUS_IS_OK(cli_session_setup(c, "", "", 0, "", 0, workgroup))) { DEBUG(0,("%d: session setup failed: %s\n", sys_getpid(), cli_errstr(c))); cli_shutdown(c); -- cgit