udp: Use udp_output_get_connection instead of udp_connection_get 69/38469/1
authorSteven Luong <sluong@cisco.com>
Mon, 13 Mar 2023 18:07:40 +0000 (11:07 -0700)
committerSteven Luong <sluong@cisco.com>
Mon, 13 Mar 2023 18:11:29 +0000 (11:11 -0700)
commita361a3951c5cc825fcb4e94c41255e2074261769
treed5b35db447e0b91af9731d95a36ed65ab7c7d206
parent0638619e059d3ec9088e5a530e7f1b236d25b595
udp: Use udp_output_get_connection instead of udp_connection_get

udp_output_get_connection handles correctly if the connection
is a listener whereas udp_connection_get does not which may lead
to a crash.

Type: fix

Signed-off-by: Steven Luong <sluong@cisco.com>
Change-Id: I40b57287a8686820d29872cae2cfd6ae27a57c26
src/vnet/udp/udp_output.c