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