Updates to the new SSL compression code
[openssl.git] / ssl / s23_pkt.c
index c25c3127725d20b16e5578c6eed88ab0f89ea5a7..99f909d50fa00257a43a7ac904b4004560a01ed7 100644 (file)
@@ -76,7 +76,7 @@ SSL *s;
                {
                s->rwstate=SSL_WRITING;
                i=BIO_write(s->wbio,&(buf[tot]),num);
-               if (i < 0)
+               if (i <= 0)
                        {
                        s->init_off=tot;
                        s->init_num=num;