diff options
| author | Gasper Stukelj <[email protected]> | 2024-07-28 21:50:52 +0200 |
|---|---|---|
| committer | Gasper Stukelj <[email protected]> | 2024-07-29 23:24:44 +0200 |
| commit | c5d077a2c62edb4d704fc64dc6eeea5a3ed0dcb0 (patch) | |
| tree | 04b018b0a10376eb1a7892425b40785b4053c348 /embassy-executor/src | |
| parent | e54c753537b4b12c3d2fd03ad8e8ba9eaaded06e (diff) | |
embassy-net: dns: bound the dns_servers slice
`smoltcp::socket::dns::Socket::update_servers()` will
panic if a slice exceeding a fixed length is passed
to it. This is can be especially inconvenient when
using DHCP config.
Avoid panicking by using at most `DNS_MAX_SERVER_COUNT`
DNS servers from the config.
Diffstat (limited to 'embassy-executor/src')
0 files changed, 0 insertions, 0 deletions
