aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb-pipe.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-14 05:38:47 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2006-03-14 05:38:47 +0000
commit2f37e2de15ad79d7d8f19f4118e80631bf4a1a1d (patch)
tree68578c6280839e9f649da4bb874559c79dd38b65 /epan/dissectors/packet-smb-pipe.c
parent0e46ae1dd69f07359ee0c981e4ec4352d5348035 (diff)
coverity bug 44
svn path=/trunk/; revision=17621
Diffstat (limited to 'epan/dissectors/packet-smb-pipe.c')
-rw-r--r--epan/dissectors/packet-smb-pipe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-smb-pipe.c b/epan/dissectors/packet-smb-pipe.c
index 2ccd17a336..3c0cc6f9e1 100644
--- a/epan/dissectors/packet-smb-pipe.c
+++ b/epan/dissectors/packet-smb-pipe.c
@@ -451,10 +451,12 @@ add_detail_level(tvbuff_t *tvb, int offset, int count _U_, packet_info *pinfo,
if (smb_info->sip->extra_info_type == SMB_EI_TRI)
trp = smb_info->sip->extra_info;
-
+
level = tvb_get_letohs(tvb, offset);
if (!pinfo->fd->flags.visited)
- trp->info_level = level; /* remember this for the response */
+ if (trp)
+ trp->info_level = level; /* remember this for the response */
+
proto_tree_add_uint(tree, hf_index, tvb, offset, 2, level);
offset += 2;
return offset;