uclient-http: reset fd to -1 after close in disconnect
authorFelix Fietkau <nbd@nbd.name>
Sat, 31 Jan 2026 13:40:20 +0000 (14:40 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sat, 31 Jan 2026 13:40:20 +0000 (14:40 +0100)
commitb3ee1209a3d09ef56073bf5c1f999d7281fa27fb
tree1446ecdb76656266383635db8306819ef17cc7c7
parentdc909ca71bc884c0e5362e1d7cc7808696cb2add
uclient-http: reset fd to -1 after close in disconnect

Ensure the file descriptor field is invalidated after closing to prevent
potential use of stale fd values.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
uclient-http.c