aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asn1')
-rw-r--r--lib/asn1/c_src/asn1_erl_nif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/asn1/c_src/asn1_erl_nif.c b/lib/asn1/c_src/asn1_erl_nif.c
index 41ce504273..e9f67636cc 100644
--- a/lib/asn1/c_src/asn1_erl_nif.c
+++ b/lib/asn1/c_src/asn1_erl_nif.c
@@ -1021,6 +1021,8 @@ static ERL_NIF_TERM encode_per_complete(ErlNifEnv* env, int argc,
if (complete_len == ASN1_ERROR
)
err_code = enif_make_uint(env, '1');
+ else
+ err_code = enif_make_uint(env, 0);
return enif_make_tuple2(env, enif_make_atom(env, "error"), err_code);
}
if (complete_len < out_binary.size)