From 14a88e5f24ab727e8b45de32c0190068a7f82023 Mon Sep 17 00:00:00 2001 From: Michael Tuexen <tuexen@fh-muenster.de> Date: Thu, 11 Aug 2016 20:37:55 +0200 Subject: [PATCH] Fix a bug when using sctp_recvmsg with IPv6. --- gtests/net/packetdrill/run_system_call.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtests/net/packetdrill/run_system_call.c b/gtests/net/packetdrill/run_system_call.c index b9ec7f43..3f87f607 100644 --- a/gtests/net/packetdrill/run_system_call.c +++ b/gtests/net/packetdrill/run_system_call.c @@ -4673,7 +4673,7 @@ static int syscall_sctp_recvmsg(struct state *state, struct syscall_spec *syscal int script_fd, live_fd, live_msg_flags = 0, result; void *msg; u32 len; - struct sockaddr live_from; + struct sockaddr_storage live_from; socklen_t live_fromlen; struct sctp_sndrcvinfo live_sinfo; struct expression *len_expr, *script_sinfo_expr, *script_msg_flags_expr; @@ -4705,7 +4705,7 @@ static int syscall_sctp_recvmsg(struct state *state, struct syscall_spec *syscal } script_from_expr = get_arg(args, 3, error); - if (check_sockaddr(script_from_expr, &live_from, error)) { + if (check_sockaddr(script_from_expr, (struct sockaddr *)&live_from, error)) { return STATUS_ERR; } script_fromlen_expr = get_arg(args, 4, error); -- GitLab