mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
net: Convert proto_ops connect() callbacks to use sockaddr_unsized
Update all struct proto_ops connect() callback function prototypes from "struct sockaddr *" to "struct sockaddr_unsized *" to avoid lying to the compiler about object sizes. Calls into struct proto handlers gain casts that will be removed in the struct proto conversion patch. No binary changes expected. Signed-off-by: Kees Cook <kees@kernel.org> Link: https://patch.msgid.link/20251104002617.2752303-3-kees@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
0e50474fa5
commit
85cb0757d7
@@ -2565,7 +2565,7 @@ static bool tipc_sockaddr_is_sane(struct sockaddr_tipc *addr)
|
||||
*
|
||||
* Return: 0 on success, errno otherwise
|
||||
*/
|
||||
static int tipc_connect(struct socket *sock, struct sockaddr *dest,
|
||||
static int tipc_connect(struct socket *sock, struct sockaddr_unsized *dest,
|
||||
int destlen, int flags)
|
||||
{
|
||||
struct sock *sk = sock->sk;
|
||||
|
||||
Reference in New Issue
Block a user