omcproxy
omcproxy copied to clipboard
Fix null pointer access in proxy_set
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 https://github.com/openwrt/omcproxy/issues/2 in 2017, but never adopted. I'm making a PR in hopes that it gets seen.
I built this and tested it on my openwrt, and it does fix the segfault on startup.
Yes, we used it with the proposed fix since 2017 and I've not heard about any error since then.
close #2