Update from stable branch.
[openssl.git] / 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);