Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bgpd: Actually find the sequence number for large-community-list #6669

Merged
merged 2 commits into from
Jul 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
tools: Catch argv_find() cases when testing only the index
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
  • Loading branch information
ton31337 committed Jul 2, 2020
commit c54142bb84e86e563c228a0f82f1d5f6989dd952
16 changes: 16 additions & 0 deletions tools/coccinelle/argv_find.cocci
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@@
identifier idx;
identifier argv;
identifier argc;
expression e1;
expression e2;
@@

- argv_find(argv, argc, e1, &idx);
if (
- idx
+ argv_find(argv, argc, e1, &idx)
)
{
e2;
}