aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-04-09 23:56:57 +0000
committerTim Potter <tpot@samba.org>2002-04-09 23:56:57 +0000
commit86a0e134e039b88bd8d69d88c3acfb4ff8bf02ed (patch)
tree1303b8a6aca2a44d60258c6a892b10527d1ed3f5 /packet-smb.c
parentd8d081866fff9b948a2086f928808190596f21c5 (diff)
downloadwireshark-86a0e134e039b88bd8d69d88c3acfb4ff8bf02ed.tar.gz
wireshark-86a0e134e039b88bd8d69d88c3acfb4ff8bf02ed.tar.bz2
wireshark-86a0e134e039b88bd8d69d88c3acfb4ff8bf02ed.zip
Fixed two instances where si->sip was being not checked for NULL before
being dereferenced. svn path=/trunk/; revision=5137
Diffstat (limited to 'packet-smb.c')
-rw-r--r--packet-smb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-smb.c b/packet-smb.c
index e0b345923f..40ca8e9f41 100644
--- a/packet-smb.c
+++ b/packet-smb.c
@@ -3,7 +3,7 @@
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* 2001 Rewrite by Ronnie Sahlberg and Guy Harris
*
- * $Id: packet-smb.c,v 1.240 2002/04/08 20:30:53 gram Exp $
+ * $Id: packet-smb.c,v 1.241 2002/04/09 23:56:57 tpot Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -3215,7 +3215,7 @@ dissect_write_file_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
COUNT_BYTES(2);
if (bc != 0) {
- if( (si->sip->flags&SMB_SIF_TID_IS_IPC) && (ofs==0) ){
+ if( (si->sip && si->sip->flags&SMB_SIF_TID_IS_IPC) && (ofs==0) ){
/* dcerpc call */
offset = dissect_file_data_dcerpc(tvb, pinfo, tree,
top_tree, offset, bc, bc, fid);
@@ -5086,7 +5086,7 @@ dissect_write_andx_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/* file data */
if (bc != 0) {
- if( (si->sip->flags&SMB_SIF_TID_IS_IPC) && (ofs==0) ){
+ if( (si->sip && si->sip->flags&SMB_SIF_TID_IS_IPC) && (ofs==0) ){
/* dcerpc call */
offset = dissect_file_data_dcerpc(tvb, pinfo, tree,
top_tree, offset, bc, datalen, fid);