packet lib: icmp: correct parser() of TimeExceeded

Signed-off-by: itoyuichi <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Yuichi Ito 2013-09-25 17:42:47 +09:00 committed by FUJITA Tomonori
parent d8d88fc06a
commit 66e529f506

View File

@ -260,7 +260,7 @@ class TimeExceeded(stringify.StringifyMixin):
@classmethod
def parser(cls, buf, offset):
data_len = struct.unpack_from(cls._PACK_STR, buf, offset)
(data_len, ) = struct.unpack_from(cls._PACK_STR, buf, offset)
msg = cls(data_len)
offset += cls._MIN_LEN