diff options
Diffstat (limited to 'crypto/modes/cfb128.c')
-rw-r--r-- | crypto/modes/cfb128.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/modes/cfb128.c b/crypto/modes/cfb128.c index fa94f047b5..f9c3c60536 100644 --- a/crypto/modes/cfb128.c +++ b/crypto/modes/cfb128.c @@ -30,6 +30,11 @@ void CRYPTO_cfb128_encrypt(const unsigned char *in, unsigned char *out, unsigned int n; size_t l = 0; + if (*num < 0) { + /* There is no good way to signal an error return from here */ + *num = -1; + return; + } n = *num; if (enc) { |