mirror of https://gerrit.osmocom.org/asn1c
starving instead of failing if no more data
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1366 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
a6114bd5b3
commit
a7560f6a93
|
@ -257,7 +257,7 @@ BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
|
|||
switch(per_get_few_bits(pd, 1)) {
|
||||
case 1: *st = 1; break;
|
||||
case 0: *st = 0; break;
|
||||
case -1: default: _ASN_DECODE_FAILED;
|
||||
case -1: default: _ASN_DECODE_STARVED;
|
||||
}
|
||||
|
||||
ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");
|
||||
|
|
Loading…
Reference in New Issue