uclient-http: fix a typo master
authorChen Minqiang <ptpt52@gmail.com>
Mon, 21 Oct 2024 23:08:34 +0000 (07:08 +0800)
committerChen Minqiang <ptpt52@gmail.com>
Mon, 21 Oct 2024 23:10:13 +0000 (07:10 +0800)
Fixes: 704c781 ("uclient-http: use ustream_ssl without ustream_fd")
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
uclient-http.c

index deeb456cdfcb9bb96bcdbf1dc54487f0c82e1ef4..f00cbe554342472c5bba3c5e917d43bbc61d4919 100644 (file)
@@ -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;
 }