mirror of https://gerrit.osmocom.org/asn1c
logging
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@486 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
parent
d7c2ef3f45
commit
4c0e87221f
|
@ -145,13 +145,10 @@ ber_check_tags(asn_codec_ctx_t *opt_codec_ctx,
|
||||||
* Fetch and process T from TLV.
|
* Fetch and process T from TLV.
|
||||||
*/
|
*/
|
||||||
tag_len = ber_fetch_tag(ptr, size, &tlv_tag);
|
tag_len = ber_fetch_tag(ptr, size, &tlv_tag);
|
||||||
ASN_DEBUG("Fetching tag from {%p,%ld} %02X..%02X: "
|
ASN_DEBUG("Fetching tag from {%p,%ld}: "
|
||||||
"len %ld, step %d, tag %s",
|
"len %ld, step %d, tagno %d got %s",
|
||||||
ptr, (long)size,
|
ptr, (long)size,
|
||||||
size?*(uint8_t *)ptr:0,
|
(long)tag_len, step, tagno,
|
||||||
((size_t)tag_len<size&&tag_len>0)
|
|
||||||
?*((uint8_t *)ptr + tag_len):0,
|
|
||||||
(long)tag_len, step,
|
|
||||||
ber_tlv_tag_string(tlv_tag));
|
ber_tlv_tag_string(tlv_tag));
|
||||||
switch(tag_len) {
|
switch(tag_len) {
|
||||||
case -1: RETURN(RC_FAIL);
|
case -1: RETURN(RC_FAIL);
|
||||||
|
|
Loading…
Reference in New Issue