Commit da2cbdb6 authored by Uri Blumenthal's avatar Uri Blumenthal

Allow aper_encode() to work with NULL buffer - useful for determining

required size for the encoding buffer to allocate
parent 5e12b526
......@@ -244,7 +244,7 @@ aper_encode(const asn_TYPE_descriptor_t *td,
po.buffer = po.tmpspace;
po.nboff = 0;
po.nbits = 8 * sizeof(po.tmpspace);
po.output = cb;
po.output = cb ? cb : ignore_output;
po.op_key = app_key;
po.flushed_bytes = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment