summaryrefslogtreecommitdiff
path: root/stun/utils.h
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-03-31 18:32:40 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-03-31 19:18:16 -0400
commit972eb35f683bdef31f2607305f10b5c04c653127 (patch)
tree03771f5079622f290694e732beadfeeacb945a78 /stun/utils.h
parent235455694b37ce3d5346444a7648e06c4bcdc0fb (diff)
downloadlibnice-972eb35f683bdef31f2607305f10b5c04c653127.tar.gz
stun: Use struct sockaddr_storage * for any pointer that we write to
Some platforms have a larger alignment requirement for struct sockaddr_* than for plain struct sockaddr, in that case, we need to make sure that the incoming pointer has the right alignement before taking it in.
Diffstat (limited to 'stun/utils.h')
-rw-r--r--stun/utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stun/utils.h b/stun/utils.h
index aa6d4b2..673fcccd 100644
--- a/stun/utils.h
+++ b/stun/utils.h
@@ -68,7 +68,7 @@ void *stun_setw (uint8_t *ptr, uint16_t value);
void stun_set_type (uint8_t *h, StunClass c, StunMethod m);
StunMessageReturn stun_xor_address (const StunMessage *msg,
- struct sockaddr *addr, socklen_t addrlen,
+ struct sockaddr_storage *addr, socklen_t addrlen,
uint32_t magic_cookie);