Skip to content

Commit

Permalink
net: dns: Increase the size of dispatcher table
Browse files Browse the repository at this point in the history
The dispatcher table needs to be large enough to have support
for all file descriptor values.

Fixes #79042

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
  • Loading branch information
jukkar committed Sep 26, 2024
1 parent 417a9e8 commit 8e4337c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/lib/dns/dispatcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ NET_BUF_POOL_DEFINE(dns_msg_pool, DNS_RESOLVER_BUF_CTR,

static struct socket_dispatch_table {
struct dns_socket_dispatcher *ctx;
} dispatch_table[CONFIG_NET_SOCKETS_POLL_MAX];
} dispatch_table[CONFIG_ZVFS_OPEN_MAX];

static int dns_dispatch(struct dns_socket_dispatcher *dispatcher,
int sock, struct sockaddr *addr, size_t addrlen,
Expand Down

0 comments on commit 8e4337c

Please sign in to comment.