diff options
author | Ben Laurie <ben@openssl.org> | 2005-04-03 16:38:22 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2005-04-03 16:38:22 +0000 |
commit | 73705abc3411ac09aaea674a8fad35a019bc90f3 (patch) | |
tree | c2134bc51ce05226cc1dbdd17cfde0f84b640c2a /crypto/evp/encode.c | |
parent | 12bdb643756d829569bb903e5b806613ff975ccb (diff) |
If input is bad, we still need to clear the buffer.
Diffstat (limited to 'crypto/evp/encode.c')
-rw-r--r-- | crypto/evp/encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/encode.c b/crypto/evp/encode.c index 2968f6460a..2d738f4b01 100644 --- a/crypto/evp/encode.c +++ b/crypto/evp/encode.c @@ -323,8 +323,8 @@ int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, if (n > 0) { v=EVP_DecodeBlock(out,d,n); - if (v < 0) { rv=0; goto end; } n=0; + if (v < 0) { rv=0; goto end; } ret+=(v-eof); } else |