Commit 9e4e1929 authored by Youness Alaoui's avatar Youness Alaoui

use sizeof struct sockaddr_in instead of sizeof struct sockaddr to hopefully...

use sizeof struct sockaddr_in instead of sizeof struct sockaddr to hopefully fix the bug with sendmsg on BSD systems
parent 61dfce55
......@@ -214,7 +214,7 @@ static int dgram_process (int sock, StunAgent *oldagent, StunAgent *newagent)
struct msghdr mh =
{
.msg_name = (struct sockaddr *)&addr,
.msg_namelen = sizeof (struct sockaddr),
.msg_namelen = sizeof (struct sockaddr_in),
.msg_iov = &iov,
.msg_iovlen = 1,
.msg_control = ctlbuf,
......
Markdown is supported
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