mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 12:01:34 +01:00
RawPDU now can copy the payload. Modified PDU::clone_inner_pdu to use this.
This commit is contained in:
@@ -76,7 +76,7 @@ Tins::PDU *Tins::PDU::clone_inner_pdu(uint8_t *ptr, uint32_t total_sz) {
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
child = new RawPDU(ptr, total_sz);
|
||||
child = new RawPDU(ptr, total_sz, true);
|
||||
return child;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user