summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Hall <chris.hall@highwayman.com>2011-08-02 15:57:48 +0100
committerChris Hall <chris.hall@highwayman.com>2011-08-02 15:57:48 +0100
commit6bd3ef2441f6b45d96c69ee8183d2bec8173ddb5 (patch)
tree796c39ebb3086072e36fdff323aff8b068e1b702
parent5f5809b14e76311d6fab751fe114b2ef495af10c (diff)
downloadquagga-ex20b.tar.bz2
quagga-ex20b.tar.xz
Fix SEGV when closing legacy threaded VTYex20b
Fix of simple typo.
-rw-r--r--lib/vty_io.c2
1 files changed, 1 insertions, 1 deletions
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) ;