summaryrefslogtreecommitdiff
path: root/lib/command_graph.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-08-04 12:05:38 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-08-04 12:15:54 +0200
commit10b8a9c0070e028daa072671427c44b051723c91 (patch)
tree92f74ed90da526f40939b27266a6bcf880456619 /lib/command_graph.c
parent3619938e2fba87a7600ad3febf551e6ef3dc611e (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