aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2020-02-05 16:08:56 +0000
committerSteve Holme <steve_holme@hotmail.com>2020-02-06 14:39:50 +0000
commitc87730daebba11b1aacab743d9f9bf8f5283a555 (patch)
tree1fc87e8c057f34905bd9f6e449385f19076f2fbb
parent8a5c1cf1f0ee6e3ed7c12b37bb290c209321f21e (diff)
ntlm_wb: Use Curl_socketpair() for greater portability
Reported-by: Daniel Stenberg Closes #4886
-rw-r--r--lib/curl_ntlm_wb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/curl_ntlm_wb.c b/lib/curl_ntlm_wb.c
index 25233c936..f820b842e 100644
--- a/lib/curl_ntlm_wb.c
+++ b/lib/curl_ntlm_wb.c
@@ -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;