diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-04 12:05:38 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-04 12:15:54 +0200 |
| commit | 10b8a9c0070e028daa072671427c44b051723c91 (patch) | |
| tree | 92f74ed90da526f40939b27266a6bcf880456619 /lib/command_graph.c | |
| parent | 3619938e2fba87a7600ad3febf551e6ef3dc611e (diff) | |
lib: vty: fix config-write fd leak
Since we were only setting vty->wfd in config_write, vty->fd would
remain 0 and vty_close() wouldn't close vty->wfd.
Clean up the entire fd closing and make it more explicit. We were even
trying to write to stdin...
Reported-by: Jorge Boncompte <jbonor@gmail.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/command_graph.c')
0 files changed, 0 insertions, 0 deletions
