summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-11-13 19:28:17 +0000
committersam <sam@FreeBSD.org>2005-11-13 19:28:17 +0000
commit6dcc5281a5e8c0e636fcbf5736a3125dd9d14880 (patch)
tree4a49c3c91126c602db39ada3a295821fafe73e45 /contrib
parent1166f90fe87cef69f7923a1b8c386eecdc6cb92b (diff)
downloadFreeBSD-src-6dcc5281a5e8c0e636fcbf5736a3125dd9d14880.zip
FreeBSD-src-6dcc5281a5e8c0e636fcbf5736a3125dd9d14880.tar.gz
correct check for whether or not md5 signature matches; applied
to vendor branch since this is already in their depot
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tcpdump/print-tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/tcpdump/print-tcp.c b/contrib/tcpdump/print-tcp.c
index ab736a0..c1dede8 100644
--- a/contrib/tcpdump/print-tcp.c
+++ b/contrib/tcpdump/print-tcp.c
@@ -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);
OpenPOWER on IntegriCloud