summaryrefslogtreecommitdiff
path: root/sshconnect.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>1999-11-15 15:25:10 +1100
committerDamien Miller <djm@mindrot.org>1999-11-15 15:25:10 +1100
commit2ccf661cbe0924a1549a74b5a4f970e90f94d6a9 (patch)
tree8bb7ea3cbe9d473e7f46b7084f563cc593cc5d47 /sshconnect.c
parentcedfecc99e73f9661d4dc3cea8c88e57c6e0b487 (diff)
- Merged more OpenBSD CVS changes:
[auth-krb4.c] - disconnect if getpeername() fails - missing xfree(*client) [canohost.c] - disconnect if getpeername() fails - fix comment: we _do_ disconnect if ip-options are set [sshd.c] - disconnect if getpeername() fails - move checking of remote port to central place [auth-rhosts.c] move checking of remote port to central place [log-server.c] avoid extra fd per sshd, from millert@ [readconf.c] print _all_ bad config-options in ssh(1), too [readconf.h] print _all_ bad config-options in ssh(1), too [ssh.c] print _all_ bad config-options in ssh(1), too [sshconnect.c] disconnect if getpeername() fails - OpenBSD's changes to sshd.c broke the PAM stuff, re-merged it.
Diffstat (limited to 'sshconnect.c')
-rw-r--r--sshconnect.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sshconnect.c b/sshconnect.c
index 033184595..f984bcaa0 100644
--- a/sshconnect.c
+++ b/sshconnect.c
@@ -15,7 +15,7 @@ login (authentication) dialog.
15*/ 15*/
16 16
17#include "includes.h" 17#include "includes.h"
18RCSID("$Id: sshconnect.c,v 1.7 1999/11/12 23:51:58 damien Exp $"); 18RCSID("$Id: sshconnect.c,v 1.8 1999/11/15 04:25:10 damien Exp $");
19 19
20#ifdef HAVE_OPENSSL 20#ifdef HAVE_OPENSSL
21#include <openssl/bn.h> 21#include <openssl/bn.h>
@@ -730,8 +730,10 @@ int try_kerberos_authentication()
730 r = sizeof(foreign); 730 r = sizeof(foreign);
731 memset(&foreign, 0, sizeof(foreign)); 731 memset(&foreign, 0, sizeof(foreign));
732 if (getpeername(packet_get_connection_in(), 732 if (getpeername(packet_get_connection_in(),
733 (struct sockaddr *)&foreign, &r) < 0) 733 (struct sockaddr *)&foreign, &r) < 0) {
734 debug("getpeername failed: %s", strerror(errno)); 734 debug("getpeername failed: %s", strerror(errno));
735 fatal_cleanup();
736 }
735 737
736 /* Get server reply. */ 738 /* Get server reply. */
737 type = packet_read(&plen); 739 type = packet_read(&plen);