]> git.puffer.fish Git - mirror/frr.git/commit
[lib] Do not call vty_close in vty_log_out to avoid possible free memory access
authorAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 11 Jul 2006 00:06:49 +0000 (00:06 +0000)
committerAndrew J. Schorr <ajschorr@alumni.princeton.edu>
Tue, 11 Jul 2006 00:06:49 +0000 (00:06 +0000)
commit9d0a3260b2d1b57b7edfd3f72885d861883d4621
tree019901060c5b0b34154b084e9ae551af33319a6d
parent74542d730198a37a872b7114643e29e99c551bcf
[lib] Do not call vty_close in vty_log_out to avoid possible free memory access

2006-07-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* 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
lib/vty.c