Browse Source

[bgpgrep/bgpgrep_vmfunc] Move guard after foundLoop=FALSE

master
Lorenzo Cogotti 1 year ago
parent
commit
49abfa2154
  1. 6
      tools/bgpgrep/bgpgrep_vmfunc.c

6
tools/bgpgrep/bgpgrep_vmfunc.c

@ -174,13 +174,13 @@ void BgpgrepF_FindAsLoops(Bgpvm *vm)
Asntree t;
Asn asn;
Sint32 pos = 0;
Boolean foundLoop = FALSE;
const Bgphdr *hdr = BGP_HDR(vm->msg);
if (hdr->type != BGP_UPDATE)
goto nomatch;
Sint32 pos = 0;
Boolean foundLoop = FALSE;
if (Bgp_StartMsgRealAsPath(&it, vm->msg) != OK)
goto nomatch;

Loading…
Cancel
Save