tcpdump/SOURCES/0011-Evp-cipher-buffers.patch

14 lines
444 B
Diff
Raw Normal View History

2019-05-07 09:29:00 +00:00
diff --git a/print-esp.c b/print-esp.c
2020-11-03 11:59:02 +00:00
index 6fabff1..cdeca9d 100644
2019-05-07 09:29:00 +00:00
--- a/print-esp.c
+++ b/print-esp.c
2020-11-03 11:59:02 +00:00
@@ -259,7 +259,7 @@ int esp_print_decrypt_buffer_by_ikev2(netdissect_options *ndo,
2019-05-07 09:29:00 +00:00
EVP_CIPHER_CTX_free(ctx);
2020-11-03 11:59:02 +00:00
(*ndo->ndo_error)(ndo, "can't allocate memory for decryption buffer");
2019-05-07 09:29:00 +00:00
}
2020-11-03 11:59:02 +00:00
- EVP_Cipher(ctx, output_buffer, input_buffer, len);
2019-05-07 09:29:00 +00:00
+ EVP_Cipher(ctx, output_buffer, input_buffer, buffer_size);
EVP_CIPHER_CTX_free(ctx);
/*