summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/vty.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 8f8effa9cc..15cc340eb0 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -2386,9 +2386,14 @@ static void vtysh_read(struct event *thread)
* => skip vty_event(VTYSH_READ, vty)!
*/
return;
- } else
+ } else {
+ assertf(vty->status != VTY_PASSFD,
+ "%p address=%s passfd=%d", vty,
+ vty->address, vty->pass_fd);
+
/* normalize other invalid values */
vty->pass_fd = -1;
+ }
/* hack for asynchronous "write integrated"
* - other commands in "buf" will be ditched