diff options
Diffstat (limited to 'src/lib/libcrypto/evp/encode.c')
-rw-r--r-- | src/lib/libcrypto/evp/encode.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/encode.c b/src/lib/libcrypto/evp/encode.c index f33afb03d3..067e62dfe9 100644 --- a/src/lib/libcrypto/evp/encode.c +++ b/src/lib/libcrypto/evp/encode.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: encode.c,v 1.18 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: encode.c,v 1.19 2014/08/06 16:01:44 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -261,7 +261,8 @@ EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, | |||
261 | } | 261 | } |
262 | 262 | ||
263 | /* There should not be base64 data after padding. */ | 263 | /* There should not be base64 data after padding. */ |
264 | if (eof && tmp != '=' && tmp != '\r' && tmp != '\n') { | 264 | if (eof && tmp != '=' && tmp != '\r' && tmp != '\n' && |
265 | v != B64_EOF) { | ||
265 | rv = -1; | 266 | rv = -1; |
266 | goto end; | 267 | goto end; |
267 | } | 268 | } |