aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb-pipe.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-11-25 23:23:34 +0000
committerGuy Harris <guy@alum.mit.edu>2001-11-25 23:23:34 +0000
commitcbf6148b227aa0700689d05f7f50994a62752d41 (patch)
tree88e4dcfd9a7bc289a2513a539b6987ac770cf34a /packet-smb-pipe.c
parent34dbc86e65d64bf747d948051ba8d4d3e967d6d1 (diff)
From Ronnie Sahlberg: fix a check for a null tvbuff pointer to check the
correct pointer. svn path=/trunk/; revision=4265
Diffstat (limited to 'packet-smb-pipe.c')
-rw-r--r--packet-smb-pipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-smb-pipe.c b/packet-smb-pipe.c
index 6d4c39601b..24cf85ccc4 100644
--- a/packet-smb-pipe.c
+++ b/packet-smb-pipe.c
@@ -8,7 +8,7 @@ XXX Fixme : shouldnt show [malformed frame] for long packets
* significant rewrite to tvbuffify the dissector, Ronnie Sahlberg and
* Guy Harris 2001
*
- * $Id: packet-smb-pipe.c,v 1.52 2001/11/21 02:01:03 guy Exp $
+ * $Id: packet-smb-pipe.c,v 1.53 2001/11/25 23:23:34 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2634,7 +2634,7 @@ dissect_pipe_smb(tvbuff_t *sp_tvb, tvbuff_t *s_tvb, tvbuff_t *pd_tvb,
/*
* Set up a subtree for the pipe data, if there is any.
*/
- if (s_tvb != NULL || tvb_length(sp_tvb) != 0 ||
+ if (sp_tvb != NULL || tvb_length(sp_tvb) != 0 ||
(tri != NULL && tri->function != -1)) {
if (tree) {
pipe_item = proto_tree_add_item(tree, proto_smb_pipe,