diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2016-04-21 19:12:26 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-04-22 04:32:32 +0000 |
commit | 9abbf8b69d830bff29705991d6ebb760ec2f4454 (patch) | |
tree | 7a75eda3bf85ae8846511215c4c0ef0a42ca1940 /epan/dissectors/packet-lwm.c | |
parent | 9de18e88f501ef953395b8cadf9dbc9b79ce40cc (diff) |
Do not mix wmem and glib allocators
Change-Id: I0e845668a1b9dbec93ea920a8585ecfe60f001d1
Reviewed-on: https://code.wireshark.org/review/15044
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-lwm.c')
-rw-r--r-- | epan/dissectors/packet-lwm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-lwm.c b/epan/dissectors/packet-lwm.c index 220a6c31a8..1bbc38c3de 100644 --- a/epan/dissectors/packet-lwm.c +++ b/epan/dissectors/packet-lwm.c @@ -429,7 +429,7 @@ static int dissect_lwm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void payload_length=tvb_reported_length(new_tvb) - LWM_MIC_LEN; /* ECB - Nwk security vector*/ - text = (guint8 *)tvb_memdup(NULL, new_tvb, 0, payload_length); + text = (guint8 *)tvb_memdup(pinfo->pool, new_tvb, 0, payload_length); payload_offset=0; /*Decrypt the actual data */ @@ -478,7 +478,6 @@ static int dissect_lwm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void decrypted_tvb = tvb_new_real_data(text,length, length); call_data_dissector(decrypted_tvb, pinfo, lwm_tree); /* XXX - needed? - tvb_set_free_cb(decrypted_tvb, g_free); add_new_data_source(pinfo, decrypted_tvb, "Decrypted LWmesh Payload"); */ col_append_fstr(pinfo->cinfo, COL_INFO, ", MIC SUCCESS"); |