git: 30cba4faf143 - stable/13 - udp: use appropriate pcbinfo when signalling EHOSTDOWN

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Wed, 23 Feb 2022 00:02:04 UTC
The branch stable/13 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=30cba4faf1437acb6e73abb1c3000b3c6eb086cf

commit 30cba4faf1437acb6e73abb1c3000b3c6eb086cf
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2022-01-01 18:17:17 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2022-02-23 00:00:38 +0000

    udp: use appropriate pcbinfo when signalling EHOSTDOWN
    
    Sponsored by:   Netflix, Inc.
    
    (cherry picked from commit 4760956e9ad39b940df01477e5a86d06c39ac217)
---
 sys/netinet/udp_usrreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 46d687690713..8ed7cefe6623 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -794,7 +794,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;
 	}