Had the test for cli_is_error() reversed. You idiot Stimpy!
authorTim Potter <tpot@samba.org>
Fri, 10 Aug 2001 06:46:11 +0000 (06:46 +0000)
committerTim Potter <tpot@samba.org>
Fri, 10 Aug 2001 06:46:11 +0000 (06:46 +0000)
(This used to be commit e9ceb17d777f4bcb7a9ff6b509c178f063be4722)

source3/libsmb/clierror.c

index c2234e8eadd370f7003fe1bf0e8c6f93680dd64f..bb2bbd0dfff60ef6ebadb0d584ef207b6f03a12d 100644 (file)
@@ -260,7 +260,7 @@ BOOL cli_is_error(struct cli_state *cli)
         else
                 rcls = CVAL(cli->inbuf, smb_rcls);
 
-        return (rcls == 0);
+        return (rcls != 0);
 }
 
 /* Return true if the last error was an NT error */