From 9d0a3260b2d1b57b7edfd3f72885d861883d4621 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Tue, 11 Jul 2006 00:06:49 +0000 Subject: [lib] Do not call vty_close in vty_log_out to avoid possible free memory access 2006-07-10 Andrew J. Schorr * vty.c: (vty_log_out) Do not call vty_close, because this could result in a parent function's accessing the freed memory. Instead, set status VTY_CLOSE and call shutdown(vty->fd, SHUT_RDWR). And add a comment on vty_close. --- lib/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/ChangeLog') diff --git a/lib/ChangeLog b/lib/ChangeLog index 25df2657..02148671 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,10 @@ +2006-07-10 Andrew J. Schorr + + * vty.c: (vty_log_out) Do not call vty_close, because this could + result in a parent function's accessing the freed memory. + Instead, set status VTY_CLOSE and call shutdown(vty->fd, SHUT_RDWR). + And add a comment on vty_close. + 2006-07-10 Andrew J. Schorr * vty.c: (vty_log_out, vty_read, vty_flush, vtysh_flush, vtysh_read) -- cgit v1.2.1