Commit c94fee91 authored by Youness Alaoui's avatar Youness Alaoui

the fingerprint is now being lton so we need to ntol it before comparing

parent 531ebccc
......@@ -117,7 +117,8 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
}
/* Checks FINGERPRINT */
crc32 = stun_fingerprint (msg->buffer, stun_message_length (msg) - 8);
crc32 = stun_fingerprint (msg->buffer, stun_message_length (msg));
fpr = ntohl (fpr);
if (fpr != crc32) {
stun_debug ("STUN demux error: bad fingerprint: 0x%08x,"
" expected: 0x%08x!\n", fpr, crc32);
......
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