From 6bd3ef2441f6b45d96c69ee8183d2bec8173ddb5 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Tue, 2 Aug 2011 15:57:48 +0100 Subject: Fix SEGV when closing legacy threaded VTY Fix of simple typo. --- lib/vty_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/vty_io.c') diff --git a/lib/vty_io.c b/lib/vty_io.c index 2eadc2d1..b0915559 100644 --- a/lib/vty_io.c +++ b/lib/vty_io.c @@ -1195,7 +1195,7 @@ uty_sock_close(vio_sock sock) sock->fd = -1 ; if (sock->t_read != NULL) - thread_cancel(sock->t_write) ; + thread_cancel(sock->t_read) ; if (sock->t_write != NULL) thread_cancel(sock->t_write) ; -- cgit v1.2.3