(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:
Assar Westerlund
2000-05-22 22:19:15 +00:00
parent 0e6af5a150
commit d196515c3f

View File

@@ -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).
* All rights reserved.
*
@@ -606,8 +606,10 @@ doit (int do_kerberos, int check_rhosts)
syslog_and_die ("socket: %m");
if (connect (errsock,
erraddr,
socket_sockaddr_size (erraddr)) < 0)
syslog_and_die ("connect: %m");
socket_sockaddr_size (erraddr)) < 0) {
syslog (LOG_WARNING, "connect: %m");
close (errsock);
}
}
if(do_kerberos) {