diff options
Diffstat (limited to 'kerberosV')
-rw-r--r-- | kerberosV/src/appl/login/limits_conf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kerberosV/src/appl/login/limits_conf.c b/kerberosV/src/appl/login/limits_conf.c index 6e51f8959be..70fc42ba278 100644 --- a/kerberosV/src/appl/login/limits_conf.c +++ b/kerberosV/src/appl/login/limits_conf.c @@ -120,6 +120,10 @@ read_limits_conf(const char *file, const struct passwd *pwd) lineno++; + if(buf[0] == '\0') { + syslog(LOG_ERR, "%s: line %d: NUL character", file, lineno); + continue; + } if(buf[strlen(buf) - 1] != '\n') { /* file did not end with a newline, figure out if we're at the EOF, or if our buffer was too small */ |