diff options
author | Jeremy Allison <jra@samba.org> | 2000-06-01 21:00:37 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-06-01 21:00:37 +0000 |
commit | b9fedcb2de5612bdb4e763fe0788e1a4a9c16d33 (patch) | |
tree | 088f062c58a4fe3d5a57b98b279ae8bf97bf2cb5 /source3/passdb | |
parent | 61ab5b46cfb93939651b4426016845a035315bf7 (diff) | |
download | samba-b9fedcb2de5612bdb4e763fe0788e1a4a9c16d33.tar.gz samba-b9fedcb2de5612bdb4e763fe0788e1a4a9c16d33.tar.bz2 samba-b9fedcb2de5612bdb4e763fe0788e1a4a9c16d33.zip |
param/loadparm.c: Looks like someone ran indent on this !
passdb/smbpass.c: Insure uninitialized memory reference fix.
printing/nt_printing.c:
rpc_server/srv_spoolss_nt.c: Insure memory leak fixes.
smbd/unix_acls.c: Shadow ref fix.
Jeremy.
(This used to be commit d175d3ebefc053e9badd91ca5f2d8bd03eb6705d)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/smbpass.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index 1579a5e00d..ec1a984b76 100644 --- a/source3/passdb/smbpass.c +++ b/source3/passdb/smbpass.c @@ -236,7 +236,9 @@ static struct smb_passwd *getsmbfilepwent(void *vp) * Check if the string is terminated with a newline - if not * then we must keep reading and discard until we get one. */ - linebuf_len = strlen(linebuf); + if ((linebuf_len = strlen(linebuf)) == 0) + continue; + if (linebuf[linebuf_len - 1] != '\n') { c = '\0'; while (!ferror(fp) && !feof(fp)) { |