Skip to content
Snippets Groups Projects
Commit 0bd918e0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix bug in outbound fragment integrity checksum"

parents ed73a27e 86a62495
No related branches found
No related tags found
No related merge requests found
......@@ -503,10 +503,12 @@ public final class IkeMessage {
int fragNum = i + 1; // 1-based
int fragFirstInnerPayload =
i == 0 ? firstInnerPayload : IkePayload.PAYLOAD_TYPE_NO_NEXT;
IkeSkfPayload skfPayload =
new IkeSkfPayload(
ikeHeader,
firstInnerPayload,
skfHeader,
fragFirstInnerPayload,
unencryptedData,
integrityMac,
encryptCipher,
......@@ -515,11 +517,7 @@ public final class IkeMessage {
fragNum,
totalFragments);
packetList[i] =
encodeHeaderAndBody(
skfHeader,
skfPayload,
i == 0 ? firstInnerPayload : IkePayload.PAYLOAD_TYPE_NO_NEXT);
packetList[i] = encodeHeaderAndBody(skfHeader, skfPayload, fragFirstInnerPayload);
getIkeLog()
.d(
"IkeMessage",
......@@ -528,7 +526,7 @@ public final class IkeMessage {
+ "/"
+ totalFragments
+ "): "
+ getIkeLog().pii(packetList[0]));
+ getIkeLog().pii(packetList[i]));
}
return packetList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment