mirror of https://gerrit.osmocom.org/asn1c
play safe
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@541 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
a56a9e89fc
commit
64f1ba231d
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue