Avoid possible NULL pointer dereference

svn path=/trunk/; revision=30851
This commit is contained in:
Kovarththanan Rajaratnam 2009-11-07 08:07:12 +00:00
parent 16adb1c04b
commit f6dfb9f323
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 ip_proto)
udpd=get_udp_conversation_data(conv,pinfo);
}
if (udpd && (udpd->fwd || udpd->rev) && (udpd->fwd->command || udpd->rev->command)) {
if (udpd && ((udpd->fwd && udpd->fwd->command) || (udpd->rev && udpd->rev->command))) {
ti = proto_tree_add_text(udp_tree, tvb, offset, 0, "Process Information");
PROTO_ITEM_SET_GENERATED(ti);
process_tree = proto_item_add_subtree(ti, ett_udp_process_info);