diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2005-09-05 13:20:56 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2005-09-05 13:20:56 +0000 |
commit | 44b2d9d828ab8ce9436317c4ae48b8a56a10b42d (patch) | |
tree | 0643b2bc766579db807c902db7b79dc3b4d5c498 | |
parent | 4887fe9bf1d591114d3216e37d181ff1a7bdb5ea (diff) |
buffer where parameters variable pointed into was freed
it is necessary to make a copy
svn path=/trunk/; revision=15684
-rw-r--r-- | epan/dissectors/packet-multipart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-multipart.c b/epan/dissectors/packet-multipart.c index 8d2571ae6a..0d4cc60d24 100644 --- a/epan/dissectors/packet-multipart.c +++ b/epan/dissectors/packet-multipart.c @@ -599,7 +599,7 @@ process_body_part(proto_tree *tree, tvbuff_t *tvb, const guint8 *boundary, if (semicolon_offset > 0) { value_str[semicolon_offset] = '\0'; - parameters = value_str + semicolon_offset + 1; + parameters = ep_strdup(value_str + semicolon_offset + 1); } else { parameters = NULL; } |