summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-udp.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-08-04 13:32:09 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-08-04 13:32:09 +0000
commitfaeed4e56e2c2b951ac63386c3e7aceaf9a455b2 (patch)
tree0c844d7e1987dc2962912ea8d91c822e4fb252c6 /epan/dissectors/packet-udp.c
parent0848d851cff4fcfc0d71772da517a543844e5558 (diff)
downloadwireshark-faeed4e56e2c2b951ac63386c3e7aceaf9a455b2.tar.gz
Avoid a possible dereference of null pointer.
svn path=/trunk/; revision=33707
Diffstat (limited to 'epan/dissectors/packet-udp.c')
-rw-r--r--epan/dissectors/packet-udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-udp.c b/epan/dissectors/packet-udp.c
index d246db3040..a4fbf62b68 100644
--- a/epan/dissectors/packet-udp.c
+++ b/epan/dissectors/packet-udp.c
@@ -538,7 +538,7 @@ dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 ip_proto)
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);
- if (udpd->fwd->command) {
+ if (udpd->fwd && udpd->fwd->command) {
proto_tree_add_uint_format_value(process_tree, hf_udp_proc_dst_uid, tvb, 0, 0,
udpd->fwd->process_uid, "%u", udpd->fwd->process_uid);
proto_tree_add_uint_format_value(process_tree, hf_udp_proc_dst_pid, tvb, 0, 0,