diff options
| author | Simon L. B. Nielsen <simon@FreeBSD.org> | 2009-01-13 21:19:27 +0000 |
|---|---|---|
| committer | Simon L. B. Nielsen <simon@FreeBSD.org> | 2009-01-13 21:19:27 +0000 |
| commit | 2568138fcdbf64a26aa4deb1379933448c0215e6 (patch) | |
| tree | 0bda42086c4823518c67624e2f4944168adbe933 | |
| parent | a8e4c71c30f7f12ad1c98b69fc497b4121105049 (diff) | |
Notes
| -rw-r--r-- | contrib/ntp/ntpd/ntp_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/ntp/ntpd/ntp_crypto.c b/contrib/ntp/ntpd/ntp_crypto.c index 84adbdda1e56..82afe699b3d1 100644 --- a/contrib/ntp/ntpd/ntp_crypto.c +++ b/contrib/ntp/ntpd/ntp_crypto.c @@ -1612,7 +1612,7 @@ crypto_verify( */ EVP_VerifyInit(&ctx, peer->digest); EVP_VerifyUpdate(&ctx, (u_char *)&ep->tstamp, vallen + 12); - if (!EVP_VerifyFinal(&ctx, (u_char *)&ep->pkt[i], siglen, pkey)) + if (EVP_VerifyFinal(&ctx, (u_char *)&ep->pkt[i], siglen, pkey) <= 0) return (XEVNT_SIG); if (peer->crypto & CRYPTO_FLAG_VRFY) { |
