diff options
Diffstat (limited to 'source3/passdb/passdb.c')
-rw-r--r-- | source3/passdb/passdb.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 3cb083bb76..6579d14351 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -276,16 +276,17 @@ struct smb_passwd *pwdb_smb_map_names(struct smb_passwd *smb) static fstring unix_name; static fstring nt_name; - DEBUG(10,("pwdb_smb_map_names: unix %s nt %s unix %d nt%d\n", - smb->unix_name != NULL ? smb->unix_name : "NULL", - smb->nt_name != NULL ? smb->nt_name : "NULL", - smb->unix_uid, smb->user_rid)); - if (smb == NULL) { + DEBUG(10,("pwdb_smb_map_names: NULL\n")); return NULL; } + DEBUG(10,("pwdb_smb_map_names: unix %s nt %s unix %d nt%d\n", + smb->unix_name != NULL ? smb->unix_name : "NULL", + smb->nt_name != NULL ? smb->nt_name : "NULL", + smb->unix_uid, smb->user_rid)); + if (smb->unix_name == NULL && smb->nt_name == NULL && smb->unix_uid == (uid_t)-1 && smb->user_rid == 0xffffffff) { |