summaryrefslogtreecommitdiffstats
path: root/source/passdb/smbpass.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-07-14 19:21:44 +0000
committerLuke Leighton <lkcl@samba.org>1999-07-14 19:21:44 +0000
commit80d36778432d42eb265ed9428f27a27250ba5e08 (patch)
tree049bb5e92339b05f061be31dc1949a191fe7240a /source/passdb/smbpass.c
parent4bdff2748956a61f12a92e19a9af98c7b9668e8f (diff)
downloadsamba-80d36778432d42eb265ed9428f27a27250ba5e08.tar.gz
samba-80d36778432d42eb265ed9428f27a27250ba5e08.tar.xz
samba-80d36778432d42eb265ed9428f27a27250ba5e08.zip
code from bertl to allow remap of default built-in names to anything.
parameter is "builtin rid file". Copyright 1999 Bertl <bp@vpnet.at>
Diffstat (limited to 'source/passdb/smbpass.c')
-rw-r--r--source/passdb/smbpass.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/passdb/smbpass.c b/source/passdb/smbpass.c
index e7adbe6d458..e3c6a5da441 100644
--- a/source/passdb/smbpass.c
+++ b/source/passdb/smbpass.c
@@ -120,6 +120,12 @@ struct smb_passwd *getsmbfilepwent(void *vp)
*/
p = strncpyn(unix_name, linebuf, sizeof(unix_name), ':');
+ if (p == NULL)
+ {
+ DEBUG(0,("getsmbfilepwent: no ':' separator found\n"));
+ continue;
+ }
+
/* Go past ':' */
p++;