diff options
author | Lukas Larsson <[email protected]> | 2011-07-20 17:06:30 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2011-08-01 17:29:45 +0200 |
commit | 3be549fa4d1518455d78ca009efa623ce2d3909d (patch) | |
tree | b2d0d9cd8da30334b15bff2e364d485360c5b2f3 /lib/asn1 | |
parent | 16e2d02b6a46a3a701cc7581bab114fa5674e9d9 (diff) | |
download | otp-3be549fa4d1518455d78ca009efa623ce2d3909d.tar.gz otp-3be549fa4d1518455d78ca009efa623ce2d3909d.tar.bz2 otp-3be549fa4d1518455d78ca009efa623ce2d3909d.zip |
Fix bug in counting length of empty composite types
Diffstat (limited to 'lib/asn1')
-rw-r--r-- | lib/asn1/c_src/asn1_erl_nif.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/asn1/c_src/asn1_erl_nif.c b/lib/asn1/c_src/asn1_erl_nif.c index 432148295e..1a1ec09c39 100644 --- a/lib/asn1/c_src/asn1_erl_nif.c +++ b/lib/asn1/c_src/asn1_erl_nif.c @@ -1056,6 +1056,7 @@ int ber_encode(ErlNifEnv *env, ERL_NIF_TERM term, mem_chunk_t **curr, unsigned i if (enif_is_empty_list(env, tv[1])) { *((*curr)->curr) = 0; (*curr)->curr -= 1; + (*count)++; break; } else return ASN1_ERROR; |