summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-11-12 10:52:03 +1100
committerDamien Miller <djm@mindrot.org>2001-11-12 10:52:03 +1100
commit07cd5897f9854e2f835614027dd321ba17910013 (patch)
tree9a6d68fcb93c565b1c053cdcba49f1fbddc38cfa /ssh.c
parent595bb4f5728b12baf12b434b6fc48d15552ec9a2 (diff)
- markus@cvs.openbsd.org 2001/10/24 08:51:35
[clientloop.c ssh.c] ignore SIGPIPE early, makes ssh work if agent dies, netbsd-pr via itojun@
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh.c b/ssh.c
index dce7530bb..2984a597f 100644
--- a/ssh.c
+++ b/ssh.c
@@ -39,7 +39,7 @@
39 */ 39 */
40 40
41#include "includes.h" 41#include "includes.h"
42RCSID("$OpenBSD: ssh.c,v 1.148 2001/10/24 08:41:20 markus Exp $"); 42RCSID("$OpenBSD: ssh.c,v 1.149 2001/10/24 08:51:35 markus Exp $");
43 43
44#include <openssl/evp.h> 44#include <openssl/evp.h>
45#include <openssl/err.h> 45#include <openssl/err.h>
@@ -752,6 +752,8 @@ again:
752 options.user_hostfile2 = 752 options.user_hostfile2 =
753 tilde_expand_filename(options.user_hostfile2, original_real_uid); 753 tilde_expand_filename(options.user_hostfile2, original_real_uid);
754 754
755 signal(SIGPIPE, SIG_IGN); /* ignore SIGPIPE early */
756
755 /* Log into the remote system. This never returns if the login fails. */ 757 /* Log into the remote system. This never returns if the login fails. */
756 ssh_login(sensitive_data.keys, sensitive_data.nkeys, 758 ssh_login(sensitive_data.keys, sensitive_data.nkeys,
757 host, (struct sockaddr *)&hostaddr, pw); 759 host, (struct sockaddr *)&hostaddr, pw);