BN_RECURSION causes the stuff in bn_mont.c to fall over for large keys. For
[oweals/openssl.git] / ssl / s23_pkt.c
index e9b2add0b8ff777ed64507bf4862f85af26d715f..99f909d50fa00257a43a7ac904b4004560a01ed7 100644 (file)
@@ -1,5 +1,5 @@
 /* ssl/s23_pkt.c */
-/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
+/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
  * All rights reserved.
  *
  * This package is an SSL implementation written
@@ -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;