Skip to content
Snippets Groups Projects
Commit ef032536 authored by Ion-Dorinel FILIP (25005)'s avatar Ion-Dorinel FILIP (25005)
Browse files

Revert "Fix link emulator"

This reverts merge request !20
parent 74d349da
No related branches found
No related tags found
1 merge request!25Revert !20: Use after free + commited binary
File deleted
......@@ -313,13 +313,13 @@ void *run_forwarding(void *param)
m->payload[random_byte] ^=
1 << (random_bit2 % 8);
}
// printf("Enqueue 1.");
pthread_mutex_lock(&buffer_lock);
enqueue(buffer, m);
pthread_cond_signal(&buffer_cond);
pthread_mutex_unlock(&buffer_lock);
// printf("Done!\n");
}
// printf("Enqueue 1.");
pthread_mutex_lock(&buffer_lock);
enqueue(buffer, m);
pthread_cond_signal(&buffer_cond);
pthread_mutex_unlock(&buffer_lock);
// printf("Done!\n");
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment