diff options
-rw-r--r-- | security/nss/lib/ssl/sslsecur.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/ssl/sslsecur.c b/security/nss/lib/ssl/sslsecur.c index 0949d5679..85bb024c8 100644 --- a/security/nss/lib/ssl/sslsecur.c +++ b/security/nss/lib/ssl/sslsecur.c @@ -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; |