summaryrefslogtreecommitdiff
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2020-06-12 15:40:19 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2020-06-12 15:40:19 +0000
commit5b2e18a31a0d18522b6b22c14c11b783cf1bac1a (patch)
tree0dc6e1cef669f9c70b52b9818d539589c10f8b0b /usr.bin/ftp
parentf19dafd86bd5567b8f7d4eb4b6d7b7597267be01 (diff)
On error, drop clients and close the device only if it's still open
Fixes crashes when USB devices are disconnected, caused by an attempt to close the already closed device: it was closed once when its ref counter drops to zero (after the last client is disconnected) and once with an explicit call to dev_close() on the error code-path.
Diffstat (limited to 'usr.bin/ftp')
0 files changed, 0 insertions, 0 deletions