aboutsummaryrefslogtreecommitdiffstats
path: root/src/vty/telnet_interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vty/telnet_interface.c')
-rw-r--r--src/vty/telnet_interface.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vty/telnet_interface.c b/src/vty/telnet_interface.c
index 9aa36fe4..32ccb058 100644
--- a/src/vty/telnet_interface.c
+++ b/src/vty/telnet_interface.c
@@ -75,7 +75,7 @@ int telnet_init(void *tall_ctx, void *priv, int port)
}
/*! Initialize telnet based VTY interface
- * \param[in] tall_ctx \ref talloc context
+ * \param[in] tall_ctx UNUSED, only for legacy API compatibility
* \param[in] priv private data to be passed to callback
* \param[in] ip IP to listen to ('::1' for localhost, '::0' for all, ...)
* \param[in] port TCP port number to bind to
@@ -84,8 +84,7 @@ int telnet_init_dynif(void *tall_ctx, void *priv, const char *ip, int port)
{
int rc;
- tall_telnet_ctx = talloc_named_const(tall_ctx, 1,
- "telnet_connection");
+ tall_telnet_ctx = talloc_named_const(OTC_GLOBAL, 0, "telnet_connection");
rc = osmo_sock_init_ofd(
&server_socket,