summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Minqiang2024-10-21 23:08:34 +0000
committerChen Minqiang2024-10-21 23:10:13 +0000
commit88ae8f208dd313f69e268234f7db55956aef1cb9 (patch)
treea904c0201f3269415f5b54a447f30cee8587b25e
parenta220818a1435cfa2b153aa36e6b9c543546fd9b8 (diff)
downloaduclient-88ae8f208dd313f69e268234f7db55956aef1cb9.tar.gz
uclient-http: fix a typo
Fixes: 704c781 ("uclient-http: use ustream_ssl without ustream_fd") Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
-rw-r--r--uclient-http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uclient-http.c b/uclient-http.c
index deeb456..f00cbe5 100644
--- a/uclient-http.c
+++ b/uclient-http.c
@@ -154,7 +154,7 @@ static void uclient_http_disconnect(struct uclient_http *uh)
else
ustream_free(&uh->ufd.stream);
if(uh->fd >= 0)
- close(uh->fd >= 0);
+ close(uh->fd);
uh->us = NULL;
}