Fix concurrent access segfault in RLC AM

master
Ismael Gomez 7 years ago
parent aeb16a5b7a
commit a992fcf607

@ -296,8 +296,9 @@ int rlc_am::read_pdu(uint8_t *payload, uint32_t nof_bytes)
}
// RETX if required
if(retx_queue.size() > 0) {
int ret = build_retx_pdu(payload, nof_bytes);
pthread_mutex_unlock(&mutex);
return build_retx_pdu(payload, nof_bytes);
return ret;
}
// Build a PDU from SDUs

Loading…
Cancel
Save