typo
authorBodo Möller <bodo@openssl.org>
Fri, 2 Jul 1999 17:52:21 +0000 (17:52 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 2 Jul 1999 17:52:21 +0000 (17:52 +0000)
ssl/s2_pkt.c
ssl/s3_pkt.c

index e65dfb2..a1bb5bc 100644 (file)
@@ -392,7 +392,7 @@ int ssl2_write(SSL *s, const void *_buf, int len)
                        return(i);
                        }
                if ((i == (int)n) ||
-                       (s->mode | SSL_MODE_ENABLE_PARTIAL_WRITE))
+                       (s->mode & SSL_MODE_ENABLE_PARTIAL_WRITE))
                        {
                        return(tot+i);
                        }
index 6613e11..7893d03 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);
                        }