mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
Fix referrals handling for some verisign-grs.com servers
Verisign has changed for no apparent reason the label for the whois server field of the cc, tv and jobs TLDs whois servers.
This commit is contained in:
parent
3605226cd4
commit
dc3eeb8170
7
whois.c
7
whois.c
@ -810,9 +810,10 @@ char *query_crsnic(const int sock, const char *query)
|
||||
is queried */
|
||||
if (state == 0 && strneq(buf, " Domain Name:", 15))
|
||||
state = 1;
|
||||
if (state == 1 && strneq(buf, " Whois Server:", 16)) {
|
||||
for (p = buf; *p != ':'; p++); /* skip until colon */
|
||||
for (p++; *p == ' '; p++); /* skip colon and spaces */
|
||||
if (state == 1 && (strneq(buf, " Whois Server:", 16)
|
||||
|| strneq(buf, " WHOIS Server:", 16))) {
|
||||
for (p = buf; *p != ':'; p++); /* skip until the colon */
|
||||
for (p++; *p == ' '; p++); /* skip the spaces */
|
||||
referral_server = strdup(p);
|
||||
if ((p = strpbrk(referral_server, "\r\n ")))
|
||||
*p = '\0';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user