diff options
author | Damien Miller <djm@mindrot.org> | 2005-06-17 12:55:03 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2005-06-17 12:55:03 +1000 |
commit | 677257fe07dd2b9a58817e1d42fc2c25bb618a4d (patch) | |
tree | 087406abe9a0f12491122452ecad2b44a04d7908 /canohost.c | |
parent | 17e7ed0e754577ae61cdd5e3f03b33fba2a09337 (diff) |
- markus@cvs.openbsd.org 2005/06/16 08:00:00
[canohost.c channels.c sshd.c]
don't exit if getpeername fails for forwarded ports; bugzilla #1054;
ok djm
Diffstat (limited to 'canohost.c')
-rw-r--r-- | canohost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/canohost.c b/canohost.c index 94d666432..c3ab45556 100644 --- a/canohost.c +++ b/canohost.c | |||
@@ -12,7 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include "includes.h" | 14 | #include "includes.h" |
15 | RCSID("$OpenBSD: canohost.c,v 1.42 2005/02/18 03:05:53 djm Exp $"); | 15 | RCSID("$OpenBSD: canohost.c,v 1.43 2005/06/16 08:00:00 markus Exp $"); |
16 | 16 | ||
17 | #include "packet.h" | 17 | #include "packet.h" |
18 | #include "xmalloc.h" | 18 | #include "xmalloc.h" |
@@ -346,7 +346,7 @@ get_sock_port(int sock, int local) | |||
346 | } else { | 346 | } else { |
347 | if (getpeername(sock, (struct sockaddr *)&from, &fromlen) < 0) { | 347 | if (getpeername(sock, (struct sockaddr *)&from, &fromlen) < 0) { |
348 | debug("getpeername failed: %.100s", strerror(errno)); | 348 | debug("getpeername failed: %.100s", strerror(errno)); |
349 | cleanup_exit(255); | 349 | return -1; |
350 | } | 350 | } |
351 | } | 351 | } |
352 | 352 | ||