summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ctrl/control_if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ctrl/control_if.c b/src/ctrl/control_if.c
index cf79670f..d78b513d 100644
--- a/src/ctrl/control_if.c
+++ b/src/ctrl/control_if.c
@@ -681,7 +681,7 @@ struct ctrl_handle *ctrl_interface_connect(void *data, const char *addr,
ctrl->listen_fd.cb = NULL;
ctrl->listen_fd.data = ctrl;
- ret = osmo_sock_init_ifd(&ctrl->listen_fd, AF_INET, SOCK_STREAM,
+ ret = osmo_sock_init_ofd(&ctrl->listen_fd, AF_INET, SOCK_STREAM,
IPPROTO_TCP, addr, port, OSMO_SOCK_F_CONNECT);
if (ret < 0) {
LOGP(DLCTRL, LOGL_ERROR, "Cannot connect to CTRL at %s:%u\n",