Do nothing if buffer has not been found

This commit is contained in:
Quentin 2019-06-03 15:00:31 +02:00
parent e7746b6922
commit 5c7f949507

View file

@ -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