summaryrefslogtreecommitdiffstats
path: root/contrib/amd
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-01-29 15:33:05 +0000
committerpfg <pfg@FreeBSD.org>2015-01-29 15:33:05 +0000
commit4d1e358c7729615c1466c824014d3399ae39a0c7 (patch)
treeb37b013695ac4a1f6df84d1a53c92bee8933660f /contrib/amd
parentfea134ce22d1b083ca73d3a5ad123e3e507a7556 (diff)
downloadFreeBSD-src-4d1e358c7729615c1466c824014d3399ae39a0c7.zip
FreeBSD-src-4d1e358c7729615c1466c824014d3399ae39a0c7.tar.gz
Revert r277841: It will be re-merged through the vendor area.
Diffstat (limited to 'contrib/amd')
-rw-r--r--contrib/amd/hlfsd/homedir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/amd/hlfsd/homedir.c b/contrib/amd/hlfsd/homedir.c
index fb4720c..2ade32f 100644
--- a/contrib/amd/hlfsd/homedir.c
+++ b/contrib/amd/hlfsd/homedir.c
@@ -494,7 +494,7 @@ readent:
buf[0] = '\0';
fgets(buf, 256, passwd_fp);
passwd_line++;
- if (buf[0] == '\0')
+ if (!buf || buf[0] == '\0')
goto readent;
/* read user name */
OpenPOWER on IntegriCloud