diff options
author | Yang Tse <yangsita@gmail.com> | 2011-08-07 03:05:04 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-08-07 03:05:04 +0200 |
commit | 1db023d3cb3f075285eb81b71d78e70d24652193 (patch) | |
tree | 0c99af121a4955260e9428de89e05dcc2065b044 /lib | |
parent | 91ad42412f97d51cc5ff54bc89d9ea6dbe391b33 (diff) |
NTLM single-sign on adjustments (IX)
Use swrite/sread instead of write/read to avoid SIGPIPE
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http_ntlm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index 9beedfb04..b4fc2da44 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -843,7 +843,7 @@ static CURLcode sso_ntlm_response(struct connectdata *conn, size_t len_in = strlen(input), len_out = sizeof(buf); while(len_in > 0) { - ssize_t written = write(conn->ntlm_auth_hlpr_socket, input, len_in); + ssize_t written = swrite(conn->ntlm_auth_hlpr_socket, input, len_in); if(written == -1) { /* Interrupted by a signal, retry it */ if(errno == EINTR) @@ -856,7 +856,7 @@ static CURLcode sso_ntlm_response(struct connectdata *conn, } /* Read one line */ while(len_out > 0) { - size = read(conn->ntlm_auth_hlpr_socket, tmpbuf, len_out); + size = sread(conn->ntlm_auth_hlpr_socket, tmpbuf, len_out); if(size == -1) { if(errno == EINTR) continue; |