Update from stable branch.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 12 Mar 2009 17:10:26 +0000 (17:10 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 12 Mar 2009 17:10:26 +0000 (17:10 +0000)
apps/apps.c

index 56e87ecd3b2151d51718ccf714962148077cd28f..957939599fae36d8060cd614b01e6bc4627dccb9 100644 (file)
@@ -2471,7 +2471,7 @@ static void readbn(BIGNUM **bn, BIO *bconn)
        int l;
 
        l = BIO_gets(bconn, buf, sizeof buf);
-       assert(l >= 0);
+       assert(l > 0);
        assert(buf[l-1] == '\n');
        buf[l-1] = '\0';
        BN_hex2bn(bn, buf);