diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-01-07 04:27:06 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2000-01-07 04:27:06 +0000 |
commit | 90293644a3f0f86ecb9261ec72a50052ded11346 (patch) | |
tree | 52df1d77e23bc1d0afd06ff79afccc3146a83d4a /packet-smb.c | |
parent | 408e41d6ed9521abcb164d79385d89f76aebbe75 (diff) |
Don't take strlen of TransactName if NULL. In fact, don't do *anything*
and return if TransactName == NULL.
svn path=/trunk/; revision=1431
Diffstat (limited to 'packet-smb.c')
-rw-r--r-- | packet-smb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packet-smb.c b/packet-smb.c index 101baeeca6..d69ce12af6 100644 --- a/packet-smb.c +++ b/packet-smb.c @@ -2,7 +2,7 @@ * Routines for smb packet dissection * Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com> * - * $Id: packet-smb.c,v 1.57 1999/12/23 20:47:16 guy Exp $ + * $Id: packet-smb.c,v 1.58 2000/01/07 04:27:06 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -9229,6 +9229,9 @@ dissect_transact_params(const u_char *pd, int offset, frame_data *fd, proto_tree guint8 Pad2; const gchar *Data; + if (!TransactName) + return; + TransactNameCopy = g_malloc(strlen(TransactName) + 1); /* Should check for error here ... */ |