Skip to content
Commit 4ff6c692 authored by Markus Fuchs's avatar Markus Fuchs Committed by Jukka Rissanen
Browse files

net: dhcpv4: Cancel pending DNS queries on DNS server update



On processing a DNS server option, which re-initializes the DNS resolve
context, also cancel all pending DNS queries before closing the old DNS
resolve context. Otherwise, `z_clock_announce()` will later work on the
re-initialized context once the queries expire and crash because the
reference to the timeout function `query_timeout()` has been cleared.

Signed-off-by: default avatarMarkus Fuchs <markus.fuchs@de.sauter-bc.com>
parent 09088d85
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment