aboutgitcodebugslistschat
path: root/test
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2026-01-09 17:54:36 +0100
committerStefano Brivio <sbrivio@redhat.com>2026-01-14 01:07:51 +0100
commite0fdfccc1c1a56c58a96d7fd6cc5d532cd780b6f (patch)
treeeeee93ec41844b4482702e43bc1e3c740f13d27b /test
parentab27852d0eebcd96d33c3699b44596a827b83bc6 (diff)
downloadpasst-e0fdfccc1c1a56c58a96d7fd6cc5d532cd780b6f.tar
passt-e0fdfccc1c1a56c58a96d7fd6cc5d532cd780b6f.tar.gz
passt-e0fdfccc1c1a56c58a96d7fd6cc5d532cd780b6f.tar.bz2
passt-e0fdfccc1c1a56c58a96d7fd6cc5d532cd780b6f.tar.lz
passt-e0fdfccc1c1a56c58a96d7fd6cc5d532cd780b6f.tar.xz
passt-e0fdfccc1c1a56c58a96d7fd6cc5d532cd780b6f.tar.zst
passt-e0fdfccc1c1a56c58a96d7fd6cc5d532cd780b6f.zip
udp_flow: Assign socket to flow inside udp_flow_sock()
Move the assignment of uflow->s[sidei] from the caller (udp_flow_new()) into udp_flow_sock() itself, placing it after the successful connect(). This is a pure refactoring with no functional change. The socket fd is now assigned within udp_flow_sock() where the socket is created, rather than requiring the caller to capture the return value. On error paths, uflow->s[sidei] remains at its initialized value of -1 rather than being set to the negative error code, which is semantically cleaner (though functionally equivalent given the >= 0 check in udp_flow_close()). Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions