Do nothing if buffer has not been found
This commit is contained in:
parent
e7746b6922
commit
5c7f949507
1 changed files with 2 additions and 2 deletions
|
@ -179,8 +179,8 @@ void mv_buffer_atow(struct buffer_resources *app_ctx, void* from, struct evt_cor
|
||||||
// 1. We get the buffer
|
// 1. We get the buffer
|
||||||
bp = g_hash_table_lookup (app_ctx->application_waiting, from);
|
bp = g_hash_table_lookup (app_ctx->application_waiting, from);
|
||||||
if (bp == NULL) {
|
if (bp == NULL) {
|
||||||
fprintf(stderr, "Unable to find this application buffer in atow. Freeing the packet.\n");
|
fprintf(stderr, "Unable to find this application buffer in atow. Doing nothing...\n");
|
||||||
mv_buffer_atof (app_ctx, from);
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2. We get the target writing queue
|
// 2. We get the target writing queue
|
||||||
|
|
Loading…
Reference in a new issue