node-ikev2 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/payload.js +3 -0
- package/package.json +1 -1
package/lib/src/payload.js
CHANGED
|
@@ -1592,6 +1592,9 @@ class PayloadSK extends Payload {
|
|
|
1592
1592
|
throw new Error(`Insufficient data for payload header at offset ${offset}`);
|
|
1593
1593
|
}
|
|
1594
1594
|
const payload = nextPayloadClass.parse(inClearData.subarray(offset, inClearData.length));
|
|
1595
|
+
// Some extended types set NONE in type from the constructor on parse, when there are multiple types with the same
|
|
1596
|
+
// encoding - e.g. PayloadID with IDi and IDr
|
|
1597
|
+
payload.type = nextPayload;
|
|
1595
1598
|
payloads.push(payload);
|
|
1596
1599
|
offset += payload.length;
|
|
1597
1600
|
nextPayload = payload.nextPayload;
|