diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-12-04 16:51:05 -0500 |
---|---|---|
committer | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2009-12-04 16:51:05 -0500 |
commit | 9e4e19299382cdee3a1030b94ae7c1304c448b9d (patch) | |
tree | 93ec972d07a7bfcfad676779973be2bea541bbdb /stun | |
parent | 61dfce55e14a8739ba3e6d2d8033e444ef9455df (diff) | |
download | libnice-9e4e19299382cdee3a1030b94ae7c1304c448b9d.tar.gz |
use sizeof struct sockaddr_in instead of sizeof struct sockaddr to hopefully fix the bug with sendmsg on BSD systems
Diffstat (limited to 'stun')
-rw-r--r-- | stun/tools/stund.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stun/tools/stund.c b/stun/tools/stund.c index 430e16d..9b3372b 100644 --- a/stun/tools/stund.c +++ b/stun/tools/stund.c @@ -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, |