summaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
Diffstat (limited to 'dev')
-rw-r--r--dev/etherpkt.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/etherpkt.cc b/dev/etherpkt.cc
index bf60bc150..475274326 100644
--- a/dev/etherpkt.cc
+++ b/dev/etherpkt.cc
@@ -46,5 +46,6 @@ PacketData::unserialize(const string &base, Checkpoint *cp,
const string &section)
{
paramIn(cp, section, base + ".length", length);
- arrayParamIn(cp, section, base + ".data", data, length);
+ if (length)
+ arrayParamIn(cp, section, base + ".data", data, length);
}