diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-14 05:38:47 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2006-03-14 05:38:47 +0000 |
commit | 3c35f6315951f7fa85040927fb47c51560a9aa3d (patch) | |
tree | 68578c6280839e9f649da4bb874559c79dd38b65 /epan/dissectors/packet-smb-pipe.c | |
parent | 7722e694068f24af03a18241b2af88b28664c148 (diff) |
coverity bug 44
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17621 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-smb-pipe.c')
-rw-r--r-- | epan/dissectors/packet-smb-pipe.c | 6 |
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; |