smoltcp-rs / smoltcp

a smol tcp/ip stack
BSD Zero Clause License
3.81k stars 432 forks source link

Don't panic if no valid source address is found for the DNS query #987

Closed thvdveld closed 2 months ago

thvdveld commented 2 months ago

Don't panic if there is no valid source address for the DNS query. The state of the query is set to Failed instead, and the query is abandoned.

Fixes #941 .

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 8 lines in your changes missing coverage. Please review.

Project coverage is 80.26%. Comparing base (4990fb9) to head (115fd06). Report is 15 commits behind head on main.

Files with missing lines Patch % Lines
src/socket/dns.rs 0.00% 8 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #987 +/- ## ========================================== + Coverage 79.27% 80.26% +0.98% ========================================== Files 81 81 Lines 26926 28307 +1381 ========================================== + Hits 21346 22720 +1374 - Misses 5580 5587 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.