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:
6be18a2
)
Fix indentation
author
Viktor Dukhovni
<openssl-users@dukhovni.org>
Sat, 19 Sep 2015 01:15:42 +0000
(21:15 -0400)
committer
Viktor Dukhovni
<openssl-users@dukhovni.org>
Sat, 19 Sep 2015 13:09:14 +0000
(09:09 -0400)
Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit
4fe1cbdff89768c5d1983988ce1022674a438bbb
)
crypto/evp/encode.c
patch
|
blob
|
history
diff --git
a/crypto/evp/encode.c
b/crypto/evp/encode.c
index 3005560ede3f46e47f052ab9224c9d5e5f662d3f..c6abc4ae8e47b00d113fdbcdd3776a6be4f83e1d 100644
(file)
--- a/
crypto/evp/encode.c
+++ b/
crypto/evp/encode.c
@@
-344,13
+344,13
@@
int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
tail:
if (n > 0) {
if ((n & 3) == 0) {
- decoded_len = EVP_DecodeBlock(out, d, n);
- n = 0;
- if (decoded_len < 0 || eof > decoded_len) {
- rv = -1;
- goto end;
- }
- ret += (decoded_len - eof);
+
decoded_len = EVP_DecodeBlock(out, d, n);
+
n = 0;
+
if (decoded_len < 0 || eof > decoded_len) {
+
rv = -1;
+
goto end;
+
}
+
ret += (decoded_len - eof);
} else if (seof) {
/* EOF in the middle of a base64 block. */
rv = -1;