]> git.puffer.fish Git - matthieu/frr.git/commit
lib: Do not blindly set the _read and _write pointers to NULL
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 13 Jun 2019 23:30:51 +0000 (19:30 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 19 Jun 2019 23:04:53 +0000 (19:04 -0400)
commit43b8ca995b8ae5ea0e08ae74cdc0cf68cfa0feef
tree0ce41245847fe6a9b3b9672affbbbc4197a41498
parent67e42128db3c380e8b8067da164675c282a1dca5
lib: Do not blindly set the _read and _write pointers to NULL

Adding a read with the address of the thread pointer we want to
use will allow lib/thread.c to properly handle your thread pointers.
Instead we were setting the pointer to NULL before we passed
into the _read and _write thread functions.  Remove the NULL
pointer set and just let thread.c handle everything.

vty_stdio_resume and vty_read would blindly add read and write
which would cause vty_event() to drop the thread pointer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/vty.c