Skip to content

Commit

Permalink
If an error occurs when attempting to write previously buffered data on
Browse files Browse the repository at this point in the history
a socket, do not override the error code with PR_WOULD_BLOCK_ERROR.
bug 132899.
  • Loading branch information
nelsonb%netscape.com committed Mar 23, 2002
1 parent 0b78cbf commit c333ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/nss/lib/ssl/sslsecur.c
Expand Up @@ -1016,7 +1016,7 @@ ssl_SecureSend(sslSocket *ss, const unsigned char *buf, int len, int flags)
if (ss->pendingBuf.len != 0) {
PORT_Assert(ss->pendingBuf.len > 0);
rv = ssl_SendSavedWriteData(ss, &ss->pendingBuf, ssl_DefSend);
if (ss->pendingBuf.len != 0) {
if (rv >= 0 && ss->pendingBuf.len != 0) {
PORT_Assert(ss->pendingBuf.len > 0);
PORT_SetError(PR_WOULD_BLOCK_ERROR);
rv = SECFailure;
Expand Down

0 comments on commit c333ed0

Please sign in to comment.