Revert "Temporal fix for 'unknown source' and broken direct UDP links."

This reverts commit 157bc90e64.
This commit is contained in:
thorkill 2015-03-18 14:54:45 +01:00
parent 0e6265f546
commit 41e801cbbd

View file

@ -261,7 +261,7 @@ static bool try_mac(node_t *n, const vpn_packet_t *inpkt) {
if(!n->status.validkey_in || !digest_active(n->indigest) || inpkt->len < sizeof(seqno_t) + digest_length(n->indigest))
return false;
return digest_verify(n->indigest, (inpkt)->data + (inpkt)->offset, inpkt->len - digest_length(n->indigest), DATA(inpkt) + inpkt->len - digest_length(n->indigest));
return digest_verify(n->indigest, SEQNO(inpkt), inpkt->len - digest_length(n->indigest), DATA(inpkt) + inpkt->len - digest_length(n->indigest));
#endif
}