Mercurial > HandyFTP
changeset 150:9d04bebd8e06
Fix double close() on controlfd reported by fdsan on Android in the emulator.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Sun, 05 Dec 2021 10:59:28 -0600 |
parents | 9273246a409a |
children | edec3932c2aa |
files | src/handyftp.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/handyftp.c Mon Nov 01 09:27:24 2021 -0500 +++ b/src/handyftp.c Sun Dec 05 10:59:28 2021 -0600 @@ -3645,6 +3645,7 @@ } sockclose(threadsite->controlfd); + threadsite->controlfd = 0; writeconsole(threadsite, locale_string("Closed connection to %s port %d.", 109), threadsite->hostname, threadsite->port); }