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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vty/telnet_interface.c b/src/vty/telnet_interface.c
index 32ab6bee..0a04d158 100644
--- a/src/vty/telnet_interface.c
+++ b/src/vty/telnet_interface.c
@@ -120,7 +120,7 @@ static int client_data(struct osmo_fd *fd, unsigned int what)
}
/* vty might have been closed from vithin vty_read() */
- if (!conn->vty)
+ if (rc == -EBADFD)
return rc;
if (what & BSC_FD_WRITE) {
@@ -193,7 +193,6 @@ void vty_event(enum event event, int sock, struct vty *vty)
break;
case VTY_CLOSED:
/* vty layer is about to free() vty */
- connection->vty = NULL;
telnet_close_client(bfd);
break;
default: