Public bug reported:
Binary package hint: whois
Whois on edgy (=4.7.14) fails due to a bug in the code which parses
server:port lookups. 4.7.20 is fine.
This is quite an serious bug as it results in whois for many lookups
where there is a referal failing (e.g. try whois 155.198.0.0)
Following patch fixes the problem:
*** whois.c.orig 2006-12-17 15:29:10.000000000 +0000
--- whois.c 2006-12-17 15:27:51.000000000 +0000
***************
*** 803,807 ****
*port = strdup(p + 1); /* IPv6 + port */
} else if ((p = strchr(input, ':')) && /* IPv6, no port */
! strchr(p, ':')) { /* and no brackets */
*server = strdup(input);
} else if ((p = strchr(input, ':'))) { /* IPv4 + port */
--- 803,807 ----
*port = strdup(p + 1); /* IPv6 + port */
} else if ((p = strchr(input, ':')) && /* IPv6, no port */
! strchr(p + 1, ':')) { /* and no
brackets */
*server = strdup(input);
} else if ((p = strchr(input, ':'))) { /* IPv4 + port */
** Affects: whois (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
PATCH: Whois on edgy fails on referalls
https://launchpad.net/bugs/76167
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs