diff options
Diffstat (limited to 'sshconnect.c')
-rw-r--r-- | sshconnect.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c index 7144040ef..d6072b36c 100644 --- a/sshconnect.c +++ b/sshconnect.c | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include "includes.h" | 15 | #include "includes.h" |
16 | RCSID("$OpenBSD: sshconnect.c,v 1.78 2000/09/07 20:27:54 deraadt Exp $"); | 16 | RCSID("$OpenBSD: sshconnect.c,v 1.79 2000/09/17 15:52:51 markus Exp $"); |
17 | 17 | ||
18 | #include <openssl/bn.h> | 18 | #include <openssl/bn.h> |
19 | #include <openssl/dsa.h> | 19 | #include <openssl/dsa.h> |
@@ -444,8 +444,10 @@ read_yes_or_no(const char *prompt, int defval) | |||
444 | retval = defval; | 444 | retval = defval; |
445 | if (strcmp(buf, "yes") == 0) | 445 | if (strcmp(buf, "yes") == 0) |
446 | retval = 1; | 446 | retval = 1; |
447 | if (strcmp(buf, "no") == 0) | 447 | else if (strcmp(buf, "no") == 0) |
448 | retval = 0; | 448 | retval = 0; |
449 | else | ||
450 | fprintf(stderr, "Please type 'yes' or 'no'.\n"); | ||
449 | 451 | ||
450 | if (retval != -1) { | 452 | if (retval != -1) { |
451 | if (f != stdin) | 453 | if (f != stdin) |