s4:client/client.c - fix wrong return codes in "do_connect"
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 10 Sep 2010 20:39:39 +0000 (22:39 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 10 Sep 2010 20:45:50 +0000 (22:45 +0200)
Detected by the Solaris cc compiler.

source4/client/client.c

index 910a66657eb34062f7bfb96cac0fa4c415102fe9..ee5357f1bf7c6fba2a20890b2feccf81864522af 100644 (file)
@@ -3088,10 +3088,10 @@ static bool do_connect(struct smbclient_context *ctx,
                d_printf("Connection to \\\\%s\\%s failed - %s\n", 
                         server, share, nt_errstr(status));
                talloc_free(ctx);
-               return NULL;
+               return false;
        }
 
-       return ctx;
+       return true;
 }
 
 /****************************************************************************