correct check for whether or not md5 signature matches; applied

to vendor branch since this is already in their depot
This commit is contained in:
sam 2005-11-13 19:28:17 +00:00
parent 1166f90fe8
commit 6dcc5281a5

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);