aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb-pipe.c
diff options
context:
space:
mode:
authorsahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-08 10:36:28 +0000
committersahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7>2006-03-08 10:36:28 +0000
commit02bbeb27b02d067a31316970f25ab203247f93fc (patch)
tree8854b9a7e4febb4fd2c7d9e3aac2026de0d644ac /epan/dissectors/packet-smb-pipe.c
parent72b6008094643d2a4fe482a92b09423275626d59 (diff)
for really really weird malformed lanman packets it is theoretically possible
that trp is uniunitialized. coverity bug 46 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17523 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-smb-pipe.c')
-rw-r--r--epan/dissectors/packet-smb-pipe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-smb-pipe.c b/epan/dissectors/packet-smb-pipe.c
index 297b679669..b69503ef44 100644
--- a/epan/dissectors/packet-smb-pipe.c
+++ b/epan/dissectors/packet-smb-pipe.c
@@ -2671,6 +2671,10 @@ dissect_pipe_lanman(tvbuff_t *pd_tvb, tvbuff_t *p_tvb, tvbuff_t *d_tvb,
cmd);
offset += 2;
+ if(!trp){
+ return FALSE; /* cant dissect this request */
+ }
+
/*
* If we haven't already done so, save the function code in
* the structure we were handed, so that it's available to