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