diff options
Diffstat (limited to 'clientloop.c')
-rw-r--r-- | clientloop.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/clientloop.c b/clientloop.c index 009480ea1..d77337b82 100644 --- a/clientloop.c +++ b/clientloop.c | |||
@@ -59,7 +59,7 @@ | |||
59 | */ | 59 | */ |
60 | 60 | ||
61 | #include "includes.h" | 61 | #include "includes.h" |
62 | RCSID("$OpenBSD: clientloop.c,v 1.132 2004/10/29 21:47:15 djm Exp $"); | 62 | RCSID("$OpenBSD: clientloop.c,v 1.133 2004/10/29 22:53:56 djm Exp $"); |
63 | 63 | ||
64 | #include "ssh.h" | 64 | #include "ssh.h" |
65 | #include "ssh1.h" | 65 | #include "ssh1.h" |
@@ -592,24 +592,9 @@ client_process_control(fd_set * readset) | |||
592 | } | 592 | } |
593 | 593 | ||
594 | allowed = 1; | 594 | allowed = 1; |
595 | if (options.control_master == 2) { | 595 | if (options.control_master == 2) |
596 | char *p, prompt[1024]; | 596 | allowed = ask_permission("Allow shared connection to %s? ", |
597 | 597 | host); | |
598 | allowed = 0; | ||
599 | snprintf(prompt, sizeof(prompt), | ||
600 | "Allow shared connection to %s? ", host); | ||
601 | p = read_passphrase(prompt, RP_USE_ASKPASS|RP_ALLOW_EOF); | ||
602 | if (p != NULL) { | ||
603 | /* | ||
604 | * Accept empty responses and responses consisting | ||
605 | * of the word "yes" as affirmative. | ||
606 | */ | ||
607 | if (*p == '\0' || *p == '\n' || | ||
608 | strcasecmp(p, "yes") == 0) | ||
609 | allowed = 1; | ||
610 | xfree(p); | ||
611 | } | ||
612 | } | ||
613 | 598 | ||
614 | unset_nonblock(client_fd); | 599 | unset_nonblock(client_fd); |
615 | 600 | ||