summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-02-20 19:48:01 +0000
committerJeremy Allison <jra@samba.org>1998-02-20 19:48:01 +0000
commitc16d4aec00230983973be3b827d1209f5db65d9c (patch)
tree40c9ce5caeef8211ef2381dee11ac8d1200ecc08 /source3/passdb
parentc57e8d404d8ab32fe08e9f85d5326160671b56d5 (diff)
downloadsamba-c16d4aec00230983973be3b827d1209f5db65d9c.tar.gz
samba-c16d4aec00230983973be3b827d1209f5db65d9c.tar.bz2
samba-c16d4aec00230983973be3b827d1209f5db65d9c.zip
nmbd_packets.c: nmbd_subnetdb.c: Patch from Andrey Alekseyev <fetch@muffin.arcadia.spb.ru>
to fix the fact that retransmit_or_expire_response_records() wasn't looking at the WINS subnet. server.c: Patch from jkf@soton.ac.uk to add %p (NIS server path) substitution. smbpass.c: Fix to stop parsing failing on non-valid lines. trans2.c: Fix for volume serial number code. util.c: Patch from jkf@soton.ac.uk to add %p (NIS server path) substitution. Fix for warnings under RH5. gcc 2.8. Jeremy. (This used to be commit e58ab3bbe6e939ba678ad5482e58e0191c8dcbcb)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/smbpass.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c
index ea386bfa9d..fbda8949bc 100644
--- a/source3/passdb/smbpass.c
+++ b/source3/passdb/smbpass.c
@@ -225,9 +225,7 @@ struct smb_passwd *get_smbpwd_entry(char *name, int smb_userid)
p++; /* Go past ':' */
if (!isdigit(*p)) {
DEBUG(0, ("get_smbpwd_entry: malformed password entry (uid not number)\n"));
- fclose(fp);
- pw_file_unlock(lockfd);
- return NULL;
+ continue;
}
uidval = atoi((char *) p);
@@ -240,9 +238,7 @@ struct smb_passwd *get_smbpwd_entry(char *name, int smb_userid)
if (*p != ':')
{
DEBUG(0, ("get_smbpwd_entry: malformed password entry (no : after uid)\n"));
- fclose(fp);
- pw_file_unlock(lockfd);
- return NULL;
+ continue;
}
if (name != NULL)