diff options
Diffstat (limited to 'source3/client/smbspool.c')
-rw-r--r-- | source3/client/smbspool.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index 5d27fbe4c2..1a3ac06c78 100644 --- a/source3/client/smbspool.c +++ b/source3/client/smbspool.c @@ -457,15 +457,15 @@ smb_connect(const char *workgroup, /* I - Workgroup */ get_myname(myname); - if ( (username) && ( *username ) && (password) && (*password) ) + /* See if we have a username first. This is for backwards compatible + behavior with 3.0.14a */ + + if ( username && *username ) { - /* - * User/password specified in the DEVICE_URI, use those credentials - * to connect to the server - */ cli = smb_complete_connection(myname, server, port, username, password, workgroup, share, 0 ); - if (cli ) { return cli; } + if (cli) + return cli; } /* |