diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2016-09-22 13:05:59 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2016-09-22 13:05:59 +0000 |
commit | 2c14c598c3061ac2533f997352aa06a2266f44d9 (patch) | |
tree | 470894a14935f308eeac93c6cbf6cf25632e1cb1 /crypto/mdc2/mdc2dgst.c | |
parent | 47b11f985b9e0ff561a67e19674de6fbcf79281d (diff) | |
download | src-2c14c598c3061ac2533f997352aa06a2266f44d9.tar.gz src-2c14c598c3061ac2533f997352aa06a2266f44d9.zip |
Import OpenSSL 1.0.1u.vendor/openssl/1.0.1uvendor/openssl-1.0.1
Notes
Notes:
svn path=/vendor-crypto/openssl/dist-1.0.1/; revision=306191
svn path=/vendor-crypto/openssl/1.0.1u/; revision=306192; tag=vendor/openssl/1.0.1u
Diffstat (limited to 'crypto/mdc2/mdc2dgst.c')
-rw-r--r-- | crypto/mdc2/mdc2dgst.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/mdc2/mdc2dgst.c b/crypto/mdc2/mdc2dgst.c index 6615cf84d7d2..2dce4936337a 100644 --- a/crypto/mdc2/mdc2dgst.c +++ b/crypto/mdc2/mdc2dgst.c @@ -91,7 +91,7 @@ int MDC2_Update(MDC2_CTX *c, const unsigned char *in, size_t len) i = c->num; if (i != 0) { - if (i + len < MDC2_BLOCK) { + if (len < MDC2_BLOCK - i) { /* partial block */ memcpy(&(c->data[i]), in, len); c->num += (int)len; |