summaryrefslogtreecommitdiff
path: root/source3/passdb
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
commit1f33d5a8aaa6b9a94dde21529fe2aa407fb5ffa1 (patch)
tree9dabf92f0bc5923d3d4f48c7a2eb4fcd1322f4a5 /source3/passdb
parentc553c01c86bca04583277f65d45d0e097fa38603 (diff)
downloadsamba-1f33d5a8aaa6b9a94dde21529fe2aa407fb5ffa1.tar.gz
samba-1f33d5a8aaa6b9a94dde21529fe2aa407fb5ffa1.tar.bz2
samba-1f33d5a8aaa6b9a94dde21529fe2aa407fb5ffa1.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> (This used to be commit 80d36778432d42eb265ed9428f27a27250ba5e08)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/smbpass.c6
-rw-r--r--source3/passdb/smbpassgroup.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c
index e7adbe6d45..e3c6a5da44 100644
--- a/source3/passdb/smbpass.c
+++ b/source3/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++;
diff --git a/source3/passdb/smbpassgroup.c b/source3/passdb/smbpassgroup.c
index 056f198074..8991cad978 100644
--- a/source3/passdb/smbpassgroup.c
+++ b/source3/passdb/smbpassgroup.c
@@ -105,6 +105,12 @@ static struct smb_passwd *getsmbfilegrpent(void *vp,
*/
p = strncpyn(user_name, linebuf, sizeof(user_name), ':');
+ if (p == NULL)
+ {
+ DEBUG(0,("getsmbfilegrpent: no ':' separator found\n"));
+ continue;
+ }
+
/* Go past ':' */
p++;