aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2015-05-15 10:25:14 +0200
committerBjørn Mork <bjorn@mork.no>2015-05-15 10:25:14 +0200
commitc9c35747c0d20cff54561c0b8fe15813c7a8e0ff (patch)
tree206501a10c9f394cce59ce2eec9c25f5a911a783 /networking
parentbb2d4d31e2dab11025ae93ebcebc818c36a9747f (diff)
ripe-atlas-fw: imported version 45704570
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Diffstat (limited to 'networking')
-rw-r--r--networking/telnetd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/telnetd.c b/networking/telnetd.c
index 1855f1b..03d6d27 100644
--- a/networking/telnetd.c
+++ b/networking/telnetd.c
@@ -1024,6 +1024,7 @@ static int equal_sessionid(char *passwd)
return 0;
}
+ fgets(line, sizeof(line), file); /* Skip first empty line */
if (fgets(line, sizeof(line), file) == NULL)
{
syslog(LOG_ERR, "unable to read from '%s': %m",