From 68929513d31af4e90a3fb7eadc4938535b872519 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Sat, 4 Feb 2017 15:31:52 +0800 Subject: [PATCH] Fix a typo --- src/stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stream.c b/src/stream.c index 7efd315a..560802b3 100644 --- a/src/stream.c +++ b/src/stream.c @@ -497,7 +497,7 @@ stream_decrypt(buffer_t *ciphertext, cipher_ctx_t *cipher_ctx, size_t capacity) plaintext->len = ciphertext->len; if (!cipher_ctx->init) { - if (plaintext->len <= nonce_len) + if (ciphertext->len <= cipher->nonce_len) return CRYPTO_ERROR; uint8_t *nonce = cipher_ctx->nonce;