udp: use appropriate pcbinfo when signalling EHOSTDOWN

MFC after:	3 days
Sponsored by:	Netflix, Inc.
This commit is contained in:
Michael Tuexen 2022-01-01 19:17:17 +01:00
parent 430df2abee
commit 4760956e9a

View File

@ -780,7 +780,7 @@ udp_common_ctlinput(int cmd, struct sockaddr *sa, void *vip,
if (PRC_IS_REDIRECT(cmd)) {
/* signal EHOSTDOWN, as it flushes the cached route */
in_pcbnotifyall(&V_udbinfo, faddr, EHOSTDOWN, udp_notify);
in_pcbnotifyall(pcbinfo, faddr, EHOSTDOWN, udp_notify);
return;
}