summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2002-10-21 20:31:59 +0000
committerVolker Lendecke <vlendec@samba.org>2002-10-21 20:31:59 +0000
commit2d19a6550bd1dc41fcd9f198fcee18a2e56b6e56 (patch)
tree1b65655a59691994efe5fef30daaa3833d71a871 /source3
parent534220da603ecc7c5982a9ff1657b46e2d0e69ea (diff)
downloadsamba-2d19a6550bd1dc41fcd9f198fcee18a2e56b6e56.tar.gz
samba-2d19a6550bd1dc41fcd9f198fcee18a2e56b6e56.tar.bz2
samba-2d19a6550bd1dc41fcd9f198fcee18a2e56b6e56.zip
pdb_unix.c did not really expect group RIDs dictated by a PDC and looking
like user RIDs. Volker (This used to be commit 872c7d40454545108ec9e7eee12894af77b4adc3)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/pdb_unix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/passdb/pdb_unix.c b/source3/passdb/pdb_unix.c
index f5bbeb4ba3..8acc29b7a4 100644
--- a/source3/passdb/pdb_unix.c
+++ b/source3/passdb/pdb_unix.c
@@ -48,7 +48,7 @@ static NTSTATUS unixsam_getsampwrid (struct pdb_methods *methods,
SAM_ACCOUNT *user, uint32 rid)
{
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
- struct passwd *pass;
+ struct passwd *pass = NULL;
const char *guest_account = lp_guestaccount();
if (!(guest_account && *guest_account)) {
DEBUG(1, ("NULL guest account!?!?\n"));
@@ -68,7 +68,9 @@ static NTSTATUS unixsam_getsampwrid (struct pdb_methods *methods,
}
} else if (pdb_rid_is_user(rid)) {
pass = getpwuid_alloc(fallback_pdb_user_rid_to_uid (rid));
- } else {
+ }
+
+ if (pass == NULL) {
return nt_status;
}