Skip to content
Commit 680d11f6 authored by Yick Xie's avatar Yick Xie Committed by Jakub Kicinski
Browse files

udp: preserve the connected status if only UDP cmsg

If "udp_cmsg_send()" returned 0 (i.e. only UDP cmsg),
"connected" should not be set to 0. Otherwise it stops
the connected socket from using the cached route.

Fixes: 2e8de857

 ("udp: add gso segment cmsg")
Signed-off-by: default avatarYick Xie <yick.xie@gmail.com>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarWillem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20240418170610.867084-1-yick.xie@gmail.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f58f45c1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment