(doit): if we fail to connect back to the stderr port, act as if `-e'
was given on the client side, i.e. without the special TCP-connection. This tries to make things better when running the head against a NAT wall, for example. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8284 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997-1999 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997-2000 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -606,8 +606,10 @@ doit (int do_kerberos, int check_rhosts)
|
|||||||
syslog_and_die ("socket: %m");
|
syslog_and_die ("socket: %m");
|
||||||
if (connect (errsock,
|
if (connect (errsock,
|
||||||
erraddr,
|
erraddr,
|
||||||
socket_sockaddr_size (erraddr)) < 0)
|
socket_sockaddr_size (erraddr)) < 0) {
|
||||||
syslog_and_die ("connect: %m");
|
syslog (LOG_WARNING, "connect: %m");
|
||||||
|
close (errsock);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(do_kerberos) {
|
if(do_kerberos) {
|
||||||
|
Reference in New Issue
Block a user