=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/canohost.c,v retrieving revision 1.41.2.1 retrieving revision 1.41.2.2 diff -u -r1.41.2.1 -r1.41.2.2 --- src/usr.bin/ssh/canohost.c 2005/03/10 16:28:27 1.41.2.1 +++ src/usr.bin/ssh/canohost.c 2005/09/02 03:44:59 1.41.2.2 @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: canohost.c,v 1.41.2.1 2005/03/10 16:28:27 brad Exp $"); +RCSID("$OpenBSD: canohost.c,v 1.41.2.2 2005/09/02 03:44:59 brad Exp $"); #include "packet.h" #include "xmalloc.h" @@ -137,7 +137,8 @@ u_char options[200]; char text[sizeof(options) * 3 + 1]; socklen_t option_size; - int i, ipproto; + u_int i; + int ipproto; struct protoent *ip; if ((ip = getprotobyname("ip")) != NULL) @@ -307,7 +308,7 @@ } else { if (getpeername(sock, (struct sockaddr *)&from, &fromlen) < 0) { debug("getpeername failed: %.100s", strerror(errno)); - cleanup_exit(255); + return -1; } } /* Return port number. */