From 72664c2d113df3360efff9cf1395a5cd8f29c92e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 08:12:55 +0200 Subject: Merging upstream version 5.5.22. Signed-off-by: Daniel Baumann --- new_gtlds_list | 2 -- tld_serv_list | 4 ++-- whois.c | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/new_gtlds_list b/new_gtlds_list index 30d675c..5152842 100644 --- a/new_gtlds_list +++ b/new_gtlds_list @@ -73,7 +73,6 @@ auspost author auto autos -avianca aws axa azure @@ -415,7 +414,6 @@ green gripe grocery group -guardian gucci guge guide diff --git a/tld_serv_list b/tld_serv_list index 4ee012a..f4aa500 100644 --- a/tld_serv_list +++ b/tld_serv_list @@ -99,7 +99,7 @@ .bi whois1.nic.bi .bj whois.nic.bj #.bl -.bm whois.afilias-srs.net +.bm whois.nic.bm .bn whois.bnnic.bn .bo whois.nic.bo #.bq @@ -353,7 +353,7 @@ .vc whois2.afilias-grs.net .ve whois.nic.ve .vg whois.nic.vg -.vi WEB https://secure.nic.vi/whois-lookup/ +.vi whois.nic.vi .vn WEB http://www.vnnic.vn/en .vu whois.dnrs.vu .wf whois.nic.wf diff --git a/whois.c b/whois.c index 18a4b5c..1afe313 100644 --- a/whois.c +++ b/whois.c @@ -347,7 +347,7 @@ int handle_query(const char *hserver, const char *hport, sockfd = openconn(server + 1, NULL); free(server); server = query_crsnic(sockfd, query); - if (no_recursion) + if (no_recursion && server) server[0] = '\0'; break; case 8: @@ -356,7 +356,7 @@ int handle_query(const char *hserver, const char *hport, sockfd = openconn(server + 1, NULL); free(server); server = query_afilias(sockfd, query); - if (no_recursion) + if (no_recursion && server) server[0] = '\0'; break; case 0x0A: -- cgit v1.2.3