Skip to content
Permalink
Browse files

ntlm_wb: Use Curl_socketpair() for greater portability

Reported-by: Daniel Stenberg
Closes #4886
  • Loading branch information
captain-caveman2k committed Feb 5, 2020
1 parent 8a5c1cf commit c87730daebba11b1aacab743d9f9bf8f5283a555
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit c87730d

Please sign in to comment.
You can’t perform that action at this time.