Skip to content

Commit

Permalink
Fixed TCP parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Potash committed Feb 15, 2016
1 parent 28f188e commit 5a6e105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LibPacketGremlin/Packets/TCP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ internal static bool TryParse(byte[] buffer, int index, int count, out TCP packe
packet.WindowSize = windowSize;
packet.Checksum = checksum;
packet.UrgentPointer = urgentPointer;
packet.OptionsAndPadding = optionsAndPadding;
packet.OptionsAndPadding = optionsAndPadding ?? Array.Empty<byte>();

return true;
}
Expand Down

0 comments on commit 5a6e105

Please sign in to comment.