diff -r -U4 openssh-4.5p1/canohost.c openssh-4.5p1+nostupidmsgs/canohost.c --- openssh-4.5p1/canohost.c 2006-09-22 10:22:18.000000000 +0100 +++ openssh-4.5p1+nostupidmsgs/canohost.c 2007-02-06 19:36:10.000000000 +0000 @@ -88,10 +88,12 @@ memset(&hints, 0, sizeof(hints)); hints.ai_socktype = SOCK_DGRAM; /*dummy*/ hints.ai_flags = AI_NUMERICHOST; if (getaddrinfo(name, "0", &hints, &ai) == 0) { +#if 0 logit("Nasty PTR record \"%s\" is set up for %s, ignoring", name, ntop); +#endif freeaddrinfo(ai); return xstrdup(ntop); } @@ -114,10 +116,12 @@ memset(&hints, 0, sizeof(hints)); hints.ai_family = from.ss_family; hints.ai_socktype = SOCK_STREAM; if (getaddrinfo(name, NULL, &hints, &aitop) != 0) { +#if 0 logit("reverse mapping checking getaddrinfo for %.700s " "[%s] failed - POSSIBLE BREAK-IN ATTEMPT!", name, ntop); +#endif return xstrdup(ntop); } /* Look for the address from the list of addresses. */ for (ai = aitop; ai; ai = ai->ai_next) { @@ -129,11 +133,13 @@ freeaddrinfo(aitop); /* If we reached the end of the list, the address was not there. */ if (!ai) { /* Address not found for the host name. */ +#if 0 logit("Address %.100s maps to %.600s, but this does not " "map back to the address - POSSIBLE BREAK-IN ATTEMPT!", ntop, name); +#endif return xstrdup(ntop); } return xstrdup(name); }