Blame SOURCES/0011-Evp-cipher-buffers.patch
|
|
1f5cfb |
diff --git a/print-esp.c b/print-esp.c
|
|
|
3b30e2 |
index 6fabff1..cdeca9d 100644
|
|
|
1f5cfb |
--- a/print-esp.c
|
|
|
1f5cfb |
+++ b/print-esp.c
|
|
|
3b30e2 |
@@ -259,7 +259,7 @@ int esp_print_decrypt_buffer_by_ikev2(netdissect_options *ndo,
|
|
|
1f5cfb |
EVP_CIPHER_CTX_free(ctx);
|
|
|
3b30e2 |
(*ndo->ndo_error)(ndo, "can't allocate memory for decryption buffer");
|
|
|
1f5cfb |
}
|
|
|
3b30e2 |
- EVP_Cipher(ctx, output_buffer, input_buffer, len);
|
|
|
1f5cfb |
+ EVP_Cipher(ctx, output_buffer, input_buffer, buffer_size);
|
|
|
1f5cfb |
EVP_CIPHER_CTX_free(ctx);
|
|
|
1f5cfb |
|
|
|
1f5cfb |
/*
|