summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 6b0d2a5c..0817d21a 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2244,8 +2244,8 @@ vty_serv_un (const char *path)
void int
vtysh_accept_r (qps_file qf, void* file_info)
{
- LOCK
int accept_sock = qf->fd;
+ LOCK
utysh_accept (accept_sock);
UNLOCK
}
@@ -2254,8 +2254,8 @@ vtysh_accept_r (qps_file qf, void* file_info)
static int
vtysh_accept (struct thread *thread)
{
- LOCK
int accept_sock = THREAD_FD (thread);
+ LOCK
result = utysh_accept (accept_sock);
UNLOCK
return result;