diff options
Diffstat (limited to 'ssh-keygen.c')
-rw-r--r-- | ssh-keygen.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh-keygen.c b/ssh-keygen.c index 25c2cfd84..ef417514a 100644 --- a/ssh-keygen.c +++ b/ssh-keygen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-keygen.c,v 1.142 2006/03/25 18:40:14 deraadt Exp $ */ | 1 | /* $OpenBSD: ssh-keygen.c,v 1.143 2006/03/30 11:05:17 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -331,6 +331,8 @@ get_line(FILE *fp, char *line, size_t len) | |||
331 | line[pos++] = c; | 331 | line[pos++] = c; |
332 | line[pos] = '\0'; | 332 | line[pos] = '\0'; |
333 | } | 333 | } |
334 | if (c == EOF) | ||
335 | return -1; | ||
334 | return pos; | 336 | return pos; |
335 | } | 337 | } |
336 | 338 | ||