Don't try to use a NULL tvb in call_ber_oid_callback(). Fixes bug 4950.

svn path=/trunk/; revision=33363
This commit is contained in:
Gerald Combs 2010-06-29 00:44:41 +00:00
parent 9afeb63b49
commit a9650cd851
1 changed files with 4 additions and 0 deletions

View File

@ -747,6 +747,10 @@ call_ber_oid_callback(const char *oid, tvbuff_t *tvb, int offset, packet_info *p
tvbuff_t *next_tvb;
const char *syntax = NULL;
if (!tvb) {
return offset;
}
next_tvb = tvb_new_subset_remaining(tvb, offset);
if(oid == NULL ||
((((syntax = get_ber_oid_syntax(oid)) == NULL) ||