summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-05-09 16:18:51 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-05-09 16:46:05 +0000
commitfd4b1f4f16aee3e3c9a2cb449655edfed171963a (patch)
tree69779d314b95731c2ea50365bd5cedd832597133 /source3/client
parent04c0e5212d53e8018f631927bd7d07edd724b77c (diff)
downloadsamba-fd4b1f4f16aee3e3c9a2cb449655edfed171963a.tar.gz
s3:smbspool: Fix regression printing with Kerberos credentials
This is a regression which has been introduced with Samba 4.8. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13939 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu May 9 16:46:05 UTC 2019 on sn-devel-184
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/smbspool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index 5efaa091913..22071613677 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -664,7 +664,7 @@ smb_connect(const char *workgroup, /* I - Workgroup */
* behavior with 3.0.14a
*/
- if (username != NULL && username[0] != '\0') {
+ if (username == NULL || username[0] == '\0') {
if (kerberos_ccache_is_valid()) {
goto kerberos_auth;
}