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:
parent
4d9819c4a3
commit
fe86b9527e
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user