aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smb.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2005-05-04 17:02:56 +0000
committerGerald Combs <gerald@wireshark.org>2005-05-04 17:02:56 +0000
commitfe5561715ba5d40be347435c39047dd9aa091c10 (patch)
tree29cd71e4c9475d670ebddbab3e9b6a98178a7784 /epan/dissectors/packet-smb.c
parent0b1b3d5716accd089cde729926a97543591dc494 (diff)
Don't try to feed a null pointer to strncmp(). Fixes bug 158.
Shouldn't the number of fuzz bugs decrease asymptotically at some point? svn path=/trunk/; revision=14306
Diffstat (limited to 'epan/dissectors/packet-smb.c')
-rw-r--r--epan/dissectors/packet-smb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-smb.c b/epan/dissectors/packet-smb.c
index c7b32ec360..318873367b 100644
--- a/epan/dissectors/packet-smb.c
+++ b/epan/dissectors/packet-smb.c
@@ -11623,6 +11623,8 @@ dissect_transaction_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
tri = NULL;
}
dissected_trans = FALSE;
+ if (an == NULL)
+ goto endofcommand;
if(strncmp("\\PIPE\\", an, 6) == 0){
if (tri != NULL)
tri->subcmd=TRANSACTION_PIPE;