-no_dhe option for ssltest.c
[openssl.git] / ssl / s3_pkt.c
index 6613e112c24e38eb02ce792f2a54ae703b05f4ed..7893d03123df324f7a3dd9e1c176315f4110000a 100644 (file)
@@ -470,7 +470,7 @@ int ssl3_write_bytes(SSL *s, int type, const void *_buf, int len)
 
                if ((i == (int)n) ||
                        (type == SSL3_RT_APPLICATION_DATA &&
-                       (s->mode | SSL_MODE_ENABLE_PARTIAL_WRITE)))
+                        (s->mode & SSL_MODE_ENABLE_PARTIAL_WRITE)))
                        {
                        return(tot+i);
                        }