diff options
Diffstat (limited to 'source3/passdb/smbpass.c')
-rw-r--r-- | source3/passdb/smbpass.c | 6 |
1 files changed, 6 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++; |