In case of "faulty" BER tag:s return tvb = NULL

svn path=/trunk/; revision=13208
This commit is contained in:
Anders Broman 2005-01-30 17:48:18 +00:00
parent bb7160249d
commit a4db2eb570
1 changed files with 1 additions and 0 deletions

View File

@ -452,6 +452,7 @@ printf("OCTET STRING dissect_ber_octet_string(%s) entered\n",name);
if( (class!=BER_CLASS_UNI)
||((tag<BER_UNI_TAG_NumericString)&&(tag!=BER_UNI_TAG_OCTETSTRING)&&(tag!=BER_UNI_TAG_UTF8String)) ){
proto_tree_add_text(tree, tvb, offset-2, 2, "BER Error: OctetString expected but Class:%d PC:%d Tag:%d was unexpected", class, pc, tag);
*out_tvb=NULL;
return end_offset;
}
} else {