From 1760925f73345cf6088f2b636d9daa62b385928a Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 2 May 2005 18:55:39 -0400 Subject: [PATCH] Improve checkpointing of ethernet packets a bit. dev/etherpkt.cc: Don't try to suck in the packet if the length is zero. --HG-- extra : convert_revision : 7212f3b677777fbce301f0613b9f513bb9fe057e --- dev/etherpkt.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 §ion) { paramIn(cp, section, base + ".length", length); - arrayParamIn(cp, section, base + ".data", data, length); + if (length) + arrayParamIn(cp, section, base + ".data", data, length); } -- 2.30.2