aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-06-08 00:40:39 +0000
committerLev Walkin <vlm@lionet.info>2005-06-08 00:40:39 +0000
commit890544536421319e96defc64b1b556e466f61f73 (patch)
tree25531d580d3e339d795991815b511556b0e31e3b /asn1c
parent9d2f82f8771e2e99fe2de79d492ec27ed001ecb2 (diff)
indefinite length should not cause this
Diffstat (limited to 'asn1c')
-rw-r--r--asn1c/unber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1c/unber.c b/asn1c/unber.c
index db00157f..73004363 100644
--- a/asn1c/unber.c
+++ b/asn1c/unber.c
@@ -217,7 +217,7 @@ static pd_code_e process_deeper(const char *fname, FILE *fp, asn1c_integer_t *of
/* Get the next byte from the input stream */
ch = fgetc(fp);
if(ch == -1) {
- if(tblen || limit) {
+ if(tblen || limit > 0) {
fprintf(stderr,
"%s: Unexpected end of file (TL)"
" at %" PRIdASN "\n",