diff options
| author | Felix Fietkau | 2024-04-19 18:04:54 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2024-04-19 18:04:54 +0000 |
| commit | e8780fa7792aaa2d68af21c0df91cd9c05e1f73a (patch) | |
| tree | f3ef1e5f77fd32fe03f3eeefeb7bedc9c0a4cffb | |
| parent | 704c78111a92873474eca3c91ad91c555b03f607 (diff) | |
uclient: fix http regression
Signed-off-by: Felix Fietkau <nbd@nbd.name>
| -rw-r--r-- | uclient-http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uclient-http.c b/uclient-http.c index 861aefb..deeb456 100644 --- a/uclient-http.c +++ b/uclient-http.c @@ -827,7 +827,6 @@ static int uclient_setup_http(struct uclient_http *uh) int ret; memset(&uh->ufd, 0, sizeof(uh->ufd)); - ustream_fd_init(&uh->ufd, uh->fd); uh->us = us; uh->ssl = false; @@ -840,6 +839,8 @@ static int uclient_setup_http(struct uclient_http *uh) if (ret) return UCLIENT_ERROR_CONNECT; + ustream_fd_init(&uh->ufd, uh->fd); + return 0; } |