Skip to content

Incorrect DNSc_GetHost() call in DNScCmd_GetHost() #1

Open
@SeanAlling

Description

@SeanAlling

Overview

When including the DNS shell commands in a build a compile time error will be generated in DNScCmd_GetHost() since no function matches DNSc_GetHost() that has 6 arguments.

Description

In DNScCmd_GetHost(), the following call to DNScCmd_GetHost() is

    status = DNSc_GetHost(p_argv[1],
                          addrs,
                         &addr_ctr,
                          DNSc_FLAG_NONE,
                          DEF_NULL,
                         &err);

This is providing 6 arguments to DNSc_GetHost(), but the function definition (shown below) specifies that 8 arguments are required.

DNSc_STATUS  DNSc_GetHost (const  CPU_CHAR       *p_host_name,
                                  CPU_CHAR       *p_res_host_name,
                                  CPU_INT32U      res_hostname_len,
                                  DNSc_ADDR_OBJ  *p_addrs,
                                  CPU_INT08U     *p_addr_nbr,
                                  DNSc_FLAGS      flags,
                                  DNSc_REQ_CFG   *p_cfg,
                                  DNSc_ERR       *p_err)

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions