diff options
author | ian.mcgreer%sun.com <devnull@localhost> | 2002-03-22 22:48:02 +0000 |
---|---|---|
committer | ian.mcgreer%sun.com <devnull@localhost> | 2002-03-22 22:48:02 +0000 |
commit | 205548df9fc421735f76a6321e50f41468c890ad (patch) | |
tree | bd33a54f8aad1b43a3a16d99221b6dff2c4131cf | |
parent | 84086a0b179cc60763f777487b9ea1ed857db8d0 (diff) | |
download | nss-hg-205548df9fc421735f76a6321e50f41468c890ad.tar.gz |
bug 132889, sense of boolean 'blocking' is reversed within the HANDLE_ERR macro of ssl_WriteV
-rw-r--r-- | security/nss/lib/ssl/sslsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/lib/ssl/sslsock.c b/security/nss/lib/ssl/sslsock.c index 610f5db61..0042924b8 100644 --- a/security/nss/lib/ssl/sslsock.c +++ b/security/nss/lib/ssl/sslsock.c @@ -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; \ @@ -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) \ |