fix afl_custom_queue_new_entry when syncing

This commit is contained in:
vanhauser-thc
2021-04-09 11:19:40 +02:00
parent 43ca2d3113
commit 019b26de58
3 changed files with 9 additions and 2 deletions

View File

@ -478,7 +478,11 @@ void add_to_queue(afl_state_t *afl, u8 *fname, u32 len, u8 passed_det) {
u8 *fname_orig = NULL;
/* At the initialization stage, queue_cur is NULL */
if (afl->queue_cur) fname_orig = afl->queue_cur->fname;
if (afl->queue_cur && !afl->syncing_party) {
fname_orig = afl->queue_cur->fname;
}
el->afl_custom_queue_new_entry(el->data, fname, fname_orig);