osmith submitted this change.
ipaccess-proxy: Fix wrong cb function passed
It makes no sense that ipaccess-proxy is using the ipaccess_fd_cb()
function from libosmo-abis, since that function expects an e1_input
ipaccess driver to be set up by the app, which ipaccess-proxy never sets
up. Furthermore, even the data pointer being passed doesn't match the
one expected by the callback.
This seems to be a bug introduced 10 years ago in osmo-bsc.git
eb623019382fdbff36fb8a72052732e225aef67e, where the name of the private
function callback used by ipaccess-proxy was changed to
proxy_ipaccess_fd_cb() to avoid colliding with the ipaccess_fd_cb() from
libosmo-abis, but only 1 of the 2 references was changed at the time,
leaving the other one pointing to the wrong function.
Fixes: eb623019382fdbff36fb8a72052732e225aef67e
Change-Id: I1702d9913a462a36e4b78b503a8338ae2ad140b1
(cherry picked from commit eb08b4ce41aa323532a7cc845eb6d236f65a6afb)
---
M src/ipaccess/ipaccess-proxy.c
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ipaccess/ipaccess-proxy.c b/src/ipaccess/ipaccess-proxy.c
index 7ede283..62e79cd 100644
--- a/src/ipaccess/ipaccess-proxy.c
+++ b/src/ipaccess/ipaccess-proxy.c
@@ -1021,7 +1021,7 @@
}
bfd = &ipc->fd;
- osmo_fd_setup(bfd, ret, OSMO_FD_READ | OSMO_FD_WRITE, ipaccess_fd_cb, ipc, priv_nr);
+ osmo_fd_setup(bfd, ret, OSMO_FD_READ | OSMO_FD_WRITE, proxy_ipaccess_fd_cb, ipc, priv_nr);
ret = setsockopt(bfd->fd, SOL_SOCKET, SO_REUSEADDR, &on, sizeof(on));
if (ret < 0) {
To view, visit change 39048. To unsubscribe, or for help writing mail filters, visit settings.