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:30:11 +0200 |
| commit | 650c7ae1646150fd679ae7b34730bb0cdd5fa49b (patch) | |
| tree | b238a9ee74889385704f9cf5e8e5e93fedfa9536 /lib/json.c | |
| parent | 19353a6d82f3b55a42f767a05a7a9a5ac20b69cf (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...
[master commit: 10b8a9c]
Reported-by: Jorge Boncompte <jbonor@gmail.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/json.c')
0 files changed, 0 insertions, 0 deletions
