summaryrefslogtreecommitdiff
path: root/stun/stunhmac.c
diff options
context:
space:
mode:
authorYouness Alaoui <kakaroto@kakaroto.(none)>2008-09-09 12:36:19 -0400
committerYouness Alaoui <kakaroto@kakaroto.(none)>2008-09-09 12:36:19 -0400
commitc6953e81e10dfc9244bc2c56e9eee76b52ba2a66 (patch)
tree31ae300c5705e050fbc6910f0d5a79eef48024cb /stun/stunhmac.c
parent97beec8d2e55dcae4403adcbbd6a1073f7181625 (diff)
downloadlibnice-c6953e81e10dfc9244bc2c56e9eee76b52ba2a66.tar.gz
Fix the generation of the transaction id
Diffstat (limited to 'stun/stunhmac.c')
-rw-r--r--stun/stunhmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stun/stunhmac.c b/stun/stunhmac.c
index 947df5c..aa49c26 100644
--- a/stun/stunhmac.c
+++ b/stun/stunhmac.c
@@ -121,5 +121,5 @@ void stun_hash_creds (const uint8_t *realm, size_t realm_len,
void stun_make_transid (stun_transid_t id)
{
- RAND_bytes (id, sizeof (id));
+ RAND_bytes (id, 16);
}