Commit 28eee29b authored by Lev Walkin's avatar Lev Walkin

always pass at least empty string

parent e59f767a
......@@ -246,8 +246,13 @@ xer_decode_primitive(asn_codec_ctx_t *opt_codec_ctx,
case RC_OK:
if(!s_arg.decoded_something) {
/* Opportunity has come and gone. Where's the result? */
rc.code = RC_FAIL;
rc.consumed = 0;
if(prim_body_decode(s_arg.struct_key, "", 0) != 0) {
/*
* This decoder does not like empty stuff.
*/
rc.code = RC_FAIL;
rc.consumed = 0;
}
}
break;
case RC_WMORE:
......
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