drivers: modem: hl7800: null terminate DNS server list
bugfix: NULL termination is required by dns_resolve_reconfigure API so null terminate the DNS server list. Fix checkpatch warning. Signed-off-by: Ryan Erickson <ryan.erickson@lairdconnect.com>
This commit is contained in:
parent
c910138ade
commit
2e045a0ed6
1 changed files with 1 additions and 1 deletions
|
@ -1503,7 +1503,7 @@ static void dns_work_cb(struct k_work *work)
|
|||
#if defined(CONFIG_DNS_RESOLVER) && !defined(CONFIG_DNS_SERVER_IP_ADDRESSES)
|
||||
int ret;
|
||||
struct dns_resolve_context *dnsCtx;
|
||||
const char *dns_servers_str[] = { ictx.dns_string };
|
||||
static const char * const dns_servers_str[] = { ictx.dns_string, NULL };
|
||||
|
||||
/* set new DNS addr in DNS resolver */
|
||||
LOG_DBG("Refresh DNS resolver");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue