Skip to content

Commit 889e971

Browse files
jukkarbjarki-andreasen
authored andcommitted
[nrf fromtree] net: dns: Increase the size of dispatcher table
The dispatcher table needs to be large enough to have support for all file descriptor values. Fixes #79042 Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 8f4ba92 commit 889e971

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

subsys/net/lib/dns/dispatcher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ NET_BUF_POOL_DEFINE(dns_msg_pool, DNS_RESOLVER_BUF_CTR,
2929

3030
static struct socket_dispatch_table {
3131
struct dns_socket_dispatcher *ctx;
32-
} dispatch_table[CONFIG_NET_SOCKETS_POLL_MAX];
32+
} dispatch_table[CONFIG_ZVFS_OPEN_MAX];
3333

3434
static int dns_dispatch(struct dns_socket_dispatcher *dispatcher,
3535
int sock, struct sockaddr *addr, size_t addrlen,

subsys/net/lib/sockets/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ config NET_SOCKETS_POLL_MAX
5050
default 6 if WIFI_NM_WPA_SUPPLICANT
5151
default 4 if SHELL_BACKEND_TELNET
5252
default 3
53+
range 1 ZVFS_OPEN_MAX
5354
help
5455
Maximum number of entries supported for poll() call.
5556

0 commit comments

Comments
 (0)