aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c/unber.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2005-08-15 07:21:22 +0000
committerLev Walkin <vlm@lionet.info>2005-08-15 07:21:22 +0000
commit454ea2cd803880743605f91b7afc95f08633a2cf (patch)
tree3ead2a8d80a1f427081a8c24f475c7f278dad5e6 /asn1c/unber.c
parent7a080483b1a15e4d6fa413cc28fccd551da13673 (diff)
oops; fixed
Diffstat (limited to 'asn1c/unber.c')
-rw-r--r--asn1c/unber.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/asn1c/unber.c b/asn1c/unber.c
index 8758ca56..80091812 100644
--- a/asn1c/unber.c
+++ b/asn1c/unber.c
@@ -202,11 +202,11 @@ process_deeper(const char *fname, FILE *fp, asn1c_integer_t *offset, int level,
pd_code_e pdc = PD_FINISHED;
ber_tlv_tag_t tlv_tag;
ber_tlv_len_t tlv_len;
- ber_tlv_len_t local_esize = effective_size;
ssize_t t_len;
ssize_t l_len;
do {
+ ber_tlv_len_t local_esize = 0;
int constr;
int ch;
@@ -295,6 +295,8 @@ process_deeper(const char *fname, FILE *fp, asn1c_integer_t *offset, int level,
*offset += t_len + l_len;
*frame_size += t_len + l_len;
effective_size += t_len + l_len;
+ printf("LES %d + %d + %d\n",
+ (int)local_esize, (int)t_len, (int)l_len);
local_esize += t_len + l_len;
if(expect_eoc && tagbuf[0] == '\0' && tagbuf[1] == '\0') {
@@ -346,7 +348,6 @@ process_deeper(const char *fname, FILE *fp, asn1c_integer_t *offset, int level,
print_TL(1, *offset, level, constr, tblen,
tlv_tag, tlv_len, local_esize);
- local_esize = 0;
tblen = 0;
} while(1);