1
0
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:
Matias Fontanini
2011-08-16 21:11:42 -03:00
parent e587d18796
commit 3feb2fdeae
3 changed files with 30 additions and 8 deletions

View File

@@ -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;
}