Commit 58a61dc5 authored by Boaz Brickner's avatar Boaz Brickner

Fix IcmpDatagramFactory following DataSegment update.

Code Coverage 97.42%
parent dce096be
......@@ -28,7 +28,7 @@ namespace PcapDotNet.Packets.Icmp
select new
{
GetRegistrationAttribute(type).MessageType,
Datagram = (IcmpDatagram)constructor.Invoke(new object[] {null, 0, 0})
Datagram = (IcmpDatagram)constructor.Invoke(new object[] {new byte[0], 0, 0})
};
return prototypes.ToDictionary(prototype => prototype.MessageType, prototype => prototype.Datagram);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment