aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ssl-utils.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-10-25 11:43:30 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2009-10-25 11:43:30 +0000
commit1bf35eeccc8c59ed9874cb96348966da281b0853 (patch)
treea19835aec094d07536c6def639d5d5d236f0a1cd /epan/dissectors/packet-ssl-utils.c
parentf2743805ede691924d8f265a2e8ee489116370fb (diff)
From Jakub Zawadzki:
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30691 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ssl-utils.c')
-rw-r--r--epan/dissectors/packet-ssl-utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ssl-utils.c b/epan/dissectors/packet-ssl-utils.c
index 7ee6b66cd1..0e457e6545 100644
--- a/epan/dissectors/packet-ssl-utils.c
+++ b/epan/dissectors/packet-ssl-utils.c
@@ -2781,8 +2781,7 @@ ssl_association_add(GTree* associations, dissector_handle_t handle, guint port,
assoc->tcp = tcp;
assoc->ssl_port = port;
- assoc->info=g_malloc(strlen(protocol)+1);
- g_strlcpy(assoc->info, protocol, strlen(protocol)+1);
+ assoc->info=g_strdup(protocol);
assoc->handle = find_dissector(protocol);
assoc->from_key_list = from_key_list;