mirror of
https://github.com/rfc1036/whois.git
synced 2026-05-03 06:51:09 +00:00
Use "domain" instead of "=" for default verisign-grs queries
To ignore the name server names spam.
This commit is contained in:
parent
823917241d
commit
e322f5cd4d
8
whois.c
8
whois.c
@ -814,9 +814,11 @@ char *query_crsnic(const int sock, const char *query)
|
||||
char *referral_server = NULL;
|
||||
int state = 0;
|
||||
|
||||
temp = malloc(strlen(query) + 1 + 2 + 1);
|
||||
*temp = '=';
|
||||
strcpy(temp + 1, query);
|
||||
temp = malloc(strlen("domain ") + strlen(query) + 2 + 1);
|
||||
|
||||
if (!strpbrk(query, "=~ "))
|
||||
strcpy(temp, "domain ");
|
||||
strcat(temp, query);
|
||||
strcat(temp, "\r\n");
|
||||
|
||||
fi = fdopen(sock, "r");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user