packet.ospf: Avoid parameter 'cls' reassignment

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Yusuke Iwase 2015-06-30 16:45:22 +09:00 committed by FUJITA Tomonori
parent 4d9819c4a3
commit fe86b9527e

View File

@ -908,7 +908,7 @@ class OSPFLSUpd(OSPFMessage):
buf = buf[cls._PACK_LEN:] buf = buf[cls._PACK_LEN:]
lsas = [] lsas = []
while buf: while buf:
lsa, cls, buf = LSA.parser(buf) lsa, _cls, buf = LSA.parser(buf)
lsas.append(lsa) lsas.append(lsa)
assert(len(lsas) == num) assert(len(lsas) == num)
return { return {