Skip to content

Commit

Permalink
bug 132889, sense of boolean 'blocking' is reversed within the HANDLE…
Browse files Browse the repository at this point in the history
…_ERR macro of ssl_WriteV
  • Loading branch information
ian.mcgreer%sun.com committed Mar 22, 2002
1 parent 5f72554 commit 0b78cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/nss/lib/ssl/sslsock.c
Expand Up @@ -1473,7 +1473,7 @@ ssl_WriteV(PRFileDesc *fd, const PRIOVec *iov, PRInt32 vectors,
#define HANDLE_ERR(rv, len) \
if (rv != len) { \
if (rv < 0) { \
if (blocking \
if (!blocking \
&& (PR_GetError() == PR_WOULD_BLOCK_ERROR) \
&& (sent > 0)) { \
return sent; \
Expand All @@ -1482,7 +1482,7 @@ ssl_WriteV(PRFileDesc *fd, const PRIOVec *iov, PRInt32 vectors,
} \
} \
/* Only a nonblocking socket can have partial sends */ \
PR_ASSERT(blocking); \
PR_ASSERT(!blocking); \
return sent; \
}
#define SEND(bfr, len) \
Expand Down

0 comments on commit 0b78cbf

Please sign in to comment.