зеркало из https://github.com/mozilla/gecko-dev.git
If an error occurs when attempting to write previously buffered data on
a socket, do not override the error code with PR_WOULD_BLOCK_ERROR. bug 132899.
This commit is contained in:
Родитель
3282d8ea58
Коммит
15d009d11b
|
@ -32,7 +32,7 @@
|
|||
* may use your version of this file under either the MPL or the
|
||||
* GPL.
|
||||
*
|
||||
* $Id: sslsecur.c,v 1.16 2002/02/27 04:40:17 nelsonb%netscape.com Exp $
|
||||
* $Id: sslsecur.c,v 1.17 2002/03/23 01:06:08 nelsonb%netscape.com Exp $
|
||||
*/
|
||||
#include "cert.h"
|
||||
#include "secitem.h"
|
||||
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче