summaryrefslogtreecommitdiff
path: root/whois.c
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2014-10-15 15:20:04 +0200
committerMarco d'Itri <md@linux.it>2014-10-16 01:52:04 +0200
commitd96160845111810ff5fb43abf384cfa4c204f8f7 (patch)
tree9b29221417af93e0d6abe45647c763162bf45838 /whois.c
parent29b1a3a9c33c93362bbb280b2517a5ae4f433db4 (diff)
downloadwhois-d96160845111810ff5fb43abf384cfa4c204f8f7.tar.gz
Convert tld_serv_list to in_domain()
Diffstat (limited to 'whois.c')
-rw-r--r--whois.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/whois.c b/whois.c
index 3345535..7cb54bc 100644
--- a/whois.c
+++ b/whois.c
@@ -524,7 +524,7 @@ char *guess_server(const char *s)
/* check the TLDs list */
for (i = 0; tld_serv[i]; i += 2)
- if (domcmp(s, tld_serv[i]))
+ if (in_domain(s, tld_serv[i]))
return strdup(tld_serv[i + 1]);
/* use the default server name for "new" gTLDs */