summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/Lossless_UDP.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/Lossless_UDP.c b/toxcore/Lossless_UDP.c
index b8279604..9725e449 100644
--- a/toxcore/Lossless_UDP.c
+++ b/toxcore/Lossless_UDP.c
@@ -62,10 +62,10 @@ static uint32_t handshake_id(Lossless_UDP *ludp, IP_Port source)
62 uint32_t id = 0, i; 62 uint32_t id = 0, i;
63 63
64 for (i = 0; i < 6; ++i) { 64 for (i = 0; i < 6; ++i) {
65 if (ludp->randtable[i][((uint8_t *)&source)[i]] == 0) 65 if (ludp->randtable[i][source.uint8[i]] == 0)
66 ludp->randtable[i][((uint8_t *)&source)[i]] = random_int(); 66 ludp->randtable[i][source.uint8[i]] = random_int();
67 67
68 id ^= ludp->randtable[i][((uint8_t *)&source)[i]]; 68 id ^= ludp->randtable[i][source.uint8[i]];
69 } 69 }
70 70
71 /* id can't be zero. */ 71 /* id can't be zero. */