check if we have a finfo before dereferencing it later in PROTO_ITEM_IS_HIDDEN()

this prevents wireshark from crashing on X Liu's kerberos capture files


svn path=/trunk/; revision=20464
This commit is contained in:
Ronnie Sahlberg 2007-01-17 21:05:44 +00:00
parent ceb60b0a6d
commit 3e9ac49497
1 changed files with 3 additions and 0 deletions

View File

@ -2974,6 +2974,9 @@ proto_item_append_text(proto_item *pi, const char *format, ...)
}
fi = PITEM_FINFO(pi);
if (fi==NULL) {
return;
}
if (!PROTO_ITEM_IS_HIDDEN(pi)) {
va_start(ap, format);