mirror of
https://github.com/curl/curl.git
synced 2026-08-24 22:13:33 +03:00
cf-socket: restore Curl_sock_assign_addr()
Regression since it was not private. Also used by msh3.c
Follow-up to 8e85764b7b
Reported-by: Gisle Vanem
Fixes #11202
Closes #11204
This commit is contained in:
parent
3df6693787
commit
196f3c3484
2 changed files with 12 additions and 5 deletions
|
|
@ -102,6 +102,13 @@ void Curl_sndbufset(curl_socket_t sockfd);
|
|||
#define Curl_sndbufset(y) Curl_nop_stmt
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Assign the address `ai` to the Curl_sockaddr_ex `dest` and
|
||||
* set the transport used.
|
||||
*/
|
||||
void Curl_sock_assign_addr(struct Curl_sockaddr_ex *dest,
|
||||
const struct Curl_addrinfo *ai,
|
||||
int transport);
|
||||
|
||||
/**
|
||||
* Creates a cfilter that opens a TCP socket to the given address
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue