Commit 4cf5758d authored by Olivier Crête's avatar Olivier Crête

Restore plen setting in the same place

parent da1a1c21
......@@ -507,6 +507,8 @@ stun_finish_long (uint8_t *msg, size_t *restrict plen,
if (ptr == NULL)
return ENOBUFS;
*plen = ptr + 4 -msg;
fpr = htonl (stun_fingerprint (msg, *plen));
memcpy (ptr, &fpr, sizeof (fpr));
}
......
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