Ignore:
Timestamp:
Mar 15, 2019 10:22:11 AM (6 years ago)
Author:
ming
Message:

Re #2160: Fixed assertion in pjlib test due to uninitialized ioqueue op keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/ioq_udp.c

    r5170 r5953  
    209209    pj_create_random_string(send_buf, bufsize); 
    210210 
     211    // Init operation keys. 
     212    pj_ioqueue_op_key_init(&read_op, sizeof(read_op)); 
     213    pj_ioqueue_op_key_init(&write_op, sizeof(write_op)); 
     214 
    211215    // Register reading from ioqueue. 
    212216    TRACE_("start recvfrom..."); 
     
    714718        } 
    715719        bytes = bufsize; 
     720        pj_ioqueue_op_key_init(&inactive_read_op[i], 
     721                               sizeof(inactive_read_op[i])); 
    716722        rc = pj_ioqueue_recv(keys[i], &inactive_read_op[i], recv_buf, &bytes, 0); 
    717723        if (rc != PJ_EPENDING) { 
     
    751757        // Randomize send buffer. 
    752758        pj_create_random_string(send_buf, bufsize); 
     759 
     760        // Init operation keys. 
     761        pj_ioqueue_op_key_init(&read_op, sizeof(read_op)); 
     762        pj_ioqueue_op_key_init(&write_op, sizeof(write_op)); 
    753763 
    754764        // Start reading on the server side. 
Note: See TracChangeset for help on using the changeset viewer.