fuzzotron.c
int send_cases(void * cases){
    int ret = 0, r = 0;
    struct testcase * entry = cases;
    uint32_t exec_hash;
    

    while(entry){
        if(entry->len == 0){
            entry = entry->next;
            continue;
        }
        else {
            ret = fuzz.send(fuzz.host, fuzz.port, entry->data, entry->len);
        }
        if(check_stop(entry, ret)<0){
            free_testcases(cases);
            return -1;
        }

        entry = entry->next;
        cases_sent++;
    }

    free_testcases(cases);
    return 0;
}
// Send all cases in a struct. return -1 if any failure, otherwise 0. Frees the supplied cases struct
// and updates global counters.
Send all cases in a struct. return -1 if any failure, otherwise 0. Frees the supplied cases struct
and updates global counters.
Send all cases in a struct . return - 1 if any failure otherwise 0 . Frees the supplied cases struct and updates global counters .
int send_cases(void * cases){
    int ret = 0, r = 0;
    struct testcase * entry = cases;
    uint32_t exec_hash;
    while(entry){
        if(entry->len == 0){
            entry = entry->next;
            continue;
        }
        else {
            ret = fuzz.send(fuzz.host, fuzz.port, entry->data, entry->len);
        }
        if(check_stop(entry, ret)<0){
            free_testcases(cases);
            return -1;
        }
        entry = entry->next;
        cases_sent++;
    }
    free_testcases(cases);
    return 0;
}
int send_cases ( void * cases ) { int ret = 0 , r = 0 ; struct testcase * entry = cases ; uint32_t exec_hash ; while ( entry ) { if ( entry -> len == 0 ) { entry = entry -> next ; continue ; } else { ret = fuzz . send ( fuzz . host , fuzz . port , entry -> data , entry -> len ) ; } if ( check_stop ( entry , ret ) < 0 ) { free_testcases ( cases ) ; return -1 ; } entry = entry -> next ; cases_sent ++ ; } free_testcases ( cases ) ; return 0 ; }
Send all cases in a struct.
Send all cases in a struct .