diff options
author | Gerald Combs <gerald@wireshark.org> | 2010-01-19 19:28:30 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2010-01-19 19:28:30 +0000 |
commit | 2efa26e0e1b9f75189b7a4f05abe3990870d6fe9 (patch) | |
tree | 56b4aa9c30bcc3396c879fad1a874f5427cae222 /epan/expert.c | |
parent | 982cfc5410f9d3bcfaadb6cced9733d941b5e948 (diff) | |
download | wireshark-2efa26e0e1b9f75189b7a4f05abe3990870d6fe9.tar.gz wireshark-2efa26e0e1b9f75189b7a4f05abe3990870d6fe9.tar.bz2 wireshark-2efa26e0e1b9f75189b7a4f05abe3990870d6fe9.zip |
Fix a double-free bug which was causing a crash. Our decryption buffer
length doesn't change, so allocate it just once. Add an expert item for
a successful decryption.
svn path=/trunk/; revision=31571
Diffstat (limited to 'epan/expert.c')
-rw-r--r-- | epan/expert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/expert.c b/epan/expert.c index 636b513d5c..0d977ae621 100644 --- a/epan/expert.c +++ b/epan/expert.c @@ -56,7 +56,7 @@ const value_string expert_group_vals[] = { { PI_MALFORMED, "Malformed" }, { PI_DEBUG, "Debug" }, { PI_PROTOCOL, "Protocol" }, -/* { PI_SECURITY, "Security" },*/ + { PI_SECURITY, "Security" }, { 0, NULL } }; @@ -166,7 +166,7 @@ packet_info *pinfo, proto_item *pi, int group, int severity, const char *format, highest_severity = severity; } - if(pi != NULL && pi->finfo != NULL) { + if(pi != NULL && pi->finfo != NULL) { expert_set_item_flags(pi, group, severity); } |