Coverity is complaining that vty->state could be VTY_PASSFD here. It
can't, it really shouldn't, and if it actually is then something went
seriously wrong somewhere earlier so assert()ing out is the best thing
to do.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* => 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