ntlm_wb: Use Curl_socketpair() for greater portability

Reported-by: Daniel Stenberg
Closes #4886
This commit is contained in:
Steve Holme 2020-02-05 16:08:56 +00:00
parent 8a5c1cf1f0
commit c87730daeb
No known key found for this signature in database
GPG Key ID: 4059CB85CA7E8F19
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ static CURLcode ntlm_wb_init(struct Curl_easy *data, struct ntlmdata *ntlm,
goto done;
}
if(socketpair(AF_UNIX, SOCK_STREAM, 0, sockfds)) {
if(Curl_socketpair(AF_UNIX, SOCK_STREAM, 0, sockfds)) {
failf(data, "Could not open socket pair. errno %d: %s",
errno, Curl_strerror(errno, buffer, sizeof(buffer)));
goto done;