- return 0; /* incomplete length */
- }
- if (ll > 5000000)
- {
-#if BER_ANY_DEBUG
- if (bad)
- yaz_log(LOG_LOG, "<<<<<<<<< return2 lev=%d len=%d res=%d ll=%d",
- level, len, res, ll);
-#endif
- return -1; /* error */
- }
-#if 0
-/* no longer necessary, since ber_declen never reads that far (returns -1) */
- if (res > len)
- {
- if (bad)
- yaz_log(LOG_LOG, "<<<<<<<<< return4 lev=%d res=%d len=%d",
- level, res, len);
- return 0;