diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 06:12:45 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 06:12:45 +0000 |
commit | 24608d01bff61b22ec3e22926a01252d65129407 (patch) | |
tree | a5001c58be3224143f38baf05b4003993e888651 /whois.c | |
parent | Adding upstream version 5.5.21. (diff) | |
download | whois-24608d01bff61b22ec3e22926a01252d65129407.tar.xz whois-24608d01bff61b22ec3e22926a01252d65129407.zip |
Adding upstream version 5.5.22.upstream/5.5.22
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | whois.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |