=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/sshconnect.c,v retrieving revision 1.41 retrieving revision 1.42 diff -u -r1.41 -r1.42 --- src/usr.bin/ssh/sshconnect.c 1999/12/01 13:59:15 1.41 +++ src/usr.bin/ssh/sshconnect.c 1999/12/01 14:07:22 1.42 @@ -8,7 +8,7 @@ */ #include "includes.h" -RCSID("$Id: sshconnect.c,v 1.41 1999/12/01 13:59:15 markus Exp $"); +RCSID("$Id: sshconnect.c,v 1.42 1999/12/01 14:07:22 markus Exp $"); #include #include "xmalloc.h" @@ -1029,6 +1029,13 @@ int local = (ntohl(hostaddr->sin_addr.s_addr) >> 24) == IN_LOOPBACKNET; int payload_len, clen, sum_len = 0; u_int32_t rand = 0; + + /* + * Turn of check_host_ip for proxy connects, since + * we don't have the remote ip-address + */ + if (options.proxy_command != NULL && options.check_host_ip) + options.check_host_ip = 0; if (options.check_host_ip) ip = xstrdup(inet_ntoa(hostaddr->sin_addr));