Skip to content
Snippets Groups Projects
Commit 36b8b827 authored by Lev Walkin's avatar Lev Walkin
Browse files

play safe

parent 4cb49cb1
No related branches found
No related tags found
No related merge requests found
......@@ -245,8 +245,9 @@ xer_decode_primitive(asn_codec_ctx_t *opt_codec_ctx,
switch(rc.code) {
case RC_OK:
if(!s_arg.decoded_something) {
char ch;
/* Opportunity has come and gone. Where's the result? */
if(prim_body_decode(s_arg.struct_key, "", 0) != 0) {
if(prim_body_decode(s_arg.struct_key, &ch, 0) != 0) {
/*
* This decoder does not like empty stuff.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment