[bgpgrep/bgpgrep_vmfunc] Move guard after foundLoop=FALSE
This commit is contained in:
parent
609620c058
commit
49abfa2154
|
@ -174,13 +174,13 @@ void BgpgrepF_FindAsLoops(Bgpvm *vm)
|
||||||
Asntree t;
|
Asntree t;
|
||||||
Asn asn;
|
Asn asn;
|
||||||
|
|
||||||
|
Sint32 pos = 0;
|
||||||
|
Boolean foundLoop = FALSE;
|
||||||
|
|
||||||
const Bgphdr *hdr = BGP_HDR(vm->msg);
|
const Bgphdr *hdr = BGP_HDR(vm->msg);
|
||||||
if (hdr->type != BGP_UPDATE)
|
if (hdr->type != BGP_UPDATE)
|
||||||
goto nomatch;
|
goto nomatch;
|
||||||
|
|
||||||
Sint32 pos = 0;
|
|
||||||
Boolean foundLoop = FALSE;
|
|
||||||
|
|
||||||
if (Bgp_StartMsgRealAsPath(&it, vm->msg) != OK)
|
if (Bgp_StartMsgRealAsPath(&it, vm->msg) != OK)
|
||||||
goto nomatch;
|
goto nomatch;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue