projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
beb8950
)
Use a signed value to check return value of do_cipher().
author
Dr. Stephen Henson
<steve@openssl.org>
Mon, 21 Mar 2011 17:37:27 +0000
(17:37 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Mon, 21 Mar 2011 17:37:27 +0000
(17:37 +0000)
crypto/evp/evp_enc.c
patch
|
blob
|
history
diff --git
a/crypto/evp/evp_enc.c
b/crypto/evp/evp_enc.c
index c016d1ed627c075f5c8a0614a59fd79a2387c99c..87af9c4931ca6b353e33f4fcb4ba0fc746161952 100644
(file)
--- a/
crypto/evp/evp_enc.c
+++ b/
crypto/evp/evp_enc.c
@@
-368,11
+368,11
@@
int EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
if (ctx->cipher->flags & EVP_CIPH_FLAG_CUSTOM_CIPHER)
{
-
i
= ctx->cipher->do_cipher(ctx, out, NULL, 0);
- if (
i
< 0)
+
ret
= ctx->cipher->do_cipher(ctx, out, NULL, 0);
+ if (
ret
< 0)
return 0;
else
- *outl =
i
;
+ *outl =
ret
;
return 1;
}