Commit ae5a205c authored by Youness Alaoui's avatar Youness Alaoui

Fix crc code

parent 7def93cf
...@@ -61,7 +61,7 @@ uint32_t stun_fingerprint (const uint8_t *msg, size_t len) ...@@ -61,7 +61,7 @@ uint32_t stun_fingerprint (const uint8_t *msg, size_t len)
data[0].buf = (void *)msg; data[0].buf = (void *)msg;
data[0].len = 2; data[0].len = 2;
data[1].buf = &fakelen; data[1].buf = (uint8_t *)&fakelen;
data[1].len = 2; data[1].len = 2;
data[2].buf = (void *)(msg + 4); data[2].buf = (void *)(msg + 4);
/* first 4 bytes done, last 8 bytes not summed */ /* first 4 bytes done, last 8 bytes not summed */
......
...@@ -137,7 +137,7 @@ static const uint32_t crc32_tab[] = { ...@@ -137,7 +137,7 @@ static const uint32_t crc32_tab[] = {
}; };
uint32_t crc32 (const crc_data data, size_t n) uint32_t crc32 (const crc_data *data, size_t n)
{ {
size_t i; size_t i;
uint32_t crc = 0xffffffff; uint32_t crc = 0xffffffff;
......
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