From 5c7f949507c954813e072f89d3cf68cb81bdc83c Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Mon, 3 Jun 2019 15:00:31 +0200 Subject: [PATCH] Do nothing if buffer has not been found --- src/algo_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algo_utils.c b/src/algo_utils.c index 5ab5899..be059b0 100644 --- a/src/algo_utils.c +++ b/src/algo_utils.c @@ -179,8 +179,8 @@ void mv_buffer_atow(struct buffer_resources *app_ctx, void* from, struct evt_cor // 1. We get the buffer bp = g_hash_table_lookup (app_ctx->application_waiting, from); if (bp == NULL) { - fprintf(stderr, "Unable to find this application buffer in atow. Freeing the packet.\n"); - mv_buffer_atof (app_ctx, from); + fprintf(stderr, "Unable to find this application buffer in atow. Doing nothing...\n"); + return; } // 2. We get the target writing queue