From bb15efd0202c134e4623a610ffbb73372d43408a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 21 Jan 2013 19:27:00 +0100 Subject: Remove unneded calls to method functions in head and tail space calculation --- src/fastd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fastd.c b/src/fastd.c index e0351c6..18f9d96 100644 --- a/src/fastd.c +++ b/src/fastd.c @@ -395,7 +395,7 @@ static size_t methods_max_packet_size(fastd_context_t *ctx) { } static size_t methods_min_encrypt_head_space(fastd_context_t *ctx) { - size_t ret = ctx->conf->methods[0]->min_encrypt_head_space(ctx); + size_t ret = 0; int i; for (i = 0; i < MAX_METHODS; i++) { @@ -411,7 +411,7 @@ static size_t methods_min_encrypt_head_space(fastd_context_t *ctx) { } static size_t methods_min_decrypt_head_space(fastd_context_t *ctx) { - size_t ret = ctx->conf->methods[0]->min_decrypt_head_space(ctx); + size_t ret = 0; int i; for (i = 0; i < MAX_METHODS; i++) { @@ -428,7 +428,7 @@ static size_t methods_min_decrypt_head_space(fastd_context_t *ctx) { } static size_t methods_min_encrypt_tail_space(fastd_context_t *ctx) { - size_t ret = ctx->conf->methods[0]->min_encrypt_tail_space(ctx); + size_t ret = 0; int i; for (i = 0; i < MAX_METHODS; i++) { @@ -444,7 +444,7 @@ static size_t methods_min_encrypt_tail_space(fastd_context_t *ctx) { } static size_t methods_min_decrypt_tail_space(fastd_context_t *ctx) { - size_t ret = ctx->conf->methods[0]->min_decrypt_tail_space(ctx); + size_t ret = 0; int i; for (i = 0; i < MAX_METHODS; i++) { -- cgit v1.2.3