afl: avoid infinite loop

Change-Id: I13ca72e1328c38f9c6b8da5c5e11b6944d5863a6