if the control the beginning of a call has valid crypto data, use the MI for the HDU;

pull/63/head
Bryan Biedenkapp 2 years ago
parent 47d89febdf
commit dbe1f69071

@ -1621,6 +1621,10 @@ void Voice::writeNet_LDU1()
uint8_t mi[MI_LENGTH_BYTES];
::memset(mi, 0x00U, MI_LENGTH_BYTES);
if (control.getAlgId() != ALGO_UNENCRYPT && control.getKId() != 0) {
control.getMI(m_lastMI);
}
if (m_netLastLDU1.getAlgId() != ALGO_UNENCRYPT && m_netLastLDU1.getKId() != 0) {
control.setAlgId(m_netLastLDU1.getAlgId());
control.setKId(m_netLastLDU1.getKId());

Loading…
Cancel
Save

Powered by TurnKey Linux.