This commit was generated by cvs2svn to compensate for changes in r152390,

which included commits to RCS files with non-trunk default branches.
This commit is contained in:
Sam Leffler 2005-11-13 19:28:17 +00:00
commit d954c733ba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152391

View File

@ -799,7 +799,7 @@ tcp_verify_signature(const struct ip *ip, const struct tcphdr *tp,
MD5_Update(&ctx, tcpmd5secret, strlen(tcpmd5secret));
MD5_Final(sig, &ctx);
if (memcmp(rcvsig, sig, 16))
if (memcmp(rcvsig, sig, 16) == 0)
return (SIGNATURE_VALID);
else
return (SIGNATURE_INVALID);