set errno=0 when no afl-fuzz present

This commit is contained in:
vanhauser-thc 2025-05-25 11:38:05 +02:00
parent fa1ac051eb
commit affe7cf5b4

View File

@ -940,7 +940,12 @@ static void __afl_start_forkserver(void) {
} }
if (write(FORKSRV_FD + 1, msg, 4) != 4) { _exit(1); } if (write(FORKSRV_FD + 1, msg, 4) != 4) {
errno = 0;
_exit(1);
}
// Now send the parameters for the set options, increasing by option number // Now send the parameters for the set options, increasing by option number