Skip to content

Commit

Permalink
snabbmark esp: Assert successful decapsulation.
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Feb 4, 2016
1 parent 70230f5 commit 061525e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/program/snabbmark/snabbmark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ function esp (npackets, packet_size)
:format(packet_size, gbits(bps)))

for _, p in ipairs(packets) do
assert(p.plain, "Decapsulation of some packets failed.")
packet.free(p.plain)
packet.free(p.encapsulated)
end
Expand Down

0 comments on commit 061525e

Please sign in to comment.