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

[WiP] Don't crash on empty apps #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
3 changes: 3 additions & 0 deletions upf/upf_app_db.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ upf_adf_get_adr_db (u32 application_id, acl_rule_t ** acl)
upf_main_t *sm = &upf_main;
upf_adf_app_t *app;

if (acl)
*acl = 0;

Comment on lines +226 to +228
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, the caller should take care of that

if (application_id == ~0)
return ~0;

Expand Down