From 8c96526633857863554561782adee07e2e079e4b Mon Sep 17 00:00:00 2001 From: Fernando Date: Sun, 17 Mar 2024 23:28:12 -0300 Subject: [PATCH] Fix DNSc_GetHost() call in DNScCmd_GetHost() Add missing parameters p_res_host_name and res_hostname_len, and set them to null. According with DNSc_GetHost() documentation: "This argument should be left DEF_NULL if a simple forward DNS request is desired." --- Cmd/dns-c_cmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cmd/dns-c_cmd.c b/Cmd/dns-c_cmd.c index 599f99a..d507466 100644 --- a/Cmd/dns-c_cmd.c +++ b/Cmd/dns-c_cmd.c @@ -255,6 +255,8 @@ CPU_INT16S DNScCmd_GetHost (CPU_INT16U argc, status = DNSc_GetHost(p_argv[1], + DEF_NULL, + (CPU_INT32U)0, addrs, &addr_ctr, DNSc_FLAG_NONE,