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

Fix null pointer access in proxy_set #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arodland
Copy link

We were checking proxy->ifindex, but proxy is initialized to NULL. Should be checking p->ifindex instead.

This fix was proposed by user @jajik in #2 in 2017, but never adopted. I'm making a PR in hopes that it gets seen.

We were checking `proxy->ifindex`, but `proxy` is initialized to NULL. Should be checking `p->ifindex` instead.

Signed-off-by: Andrew Rodland <[email protected]>
@arodland
Copy link
Author

I built this and tested it on my openwrt, and it does fix the segfault on startup.

@jajik
Copy link

jajik commented Oct 12, 2023

Yes, we used it with the proposed fix since 2017 and I've not heard about any error since then.

close #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants