aboutsummaryrefslogtreecommitdiffstats
path: root/epan/asn1.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-06 03:43:42 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2005-08-06 03:43:42 +0000
commit23f9886d057ac7a7009ed4e7670321d577198eca (patch)
treed34048dd20602ebb2a1ccafb954bec0bfe7c2e4a /epan/asn1.c
parentf10198fa0a7f4e3ab7e86f17930a2c2112869010 (diff)
In packet-frame.c, don't free static memory when we throw a
DissectorError. In packet-kerberos.c, restore pinfo->private_data if we throw an exception, which keeps the SMB dissector from throwing a DissectorError. Initialize variables in other places to squelch valgrind warnings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15235 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/asn1.c')
-rw-r--r--epan/asn1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/asn1.c b/epan/asn1.c
index e976866bbd..d3d9fc02f3 100644
--- a/epan/asn1.c
+++ b/epan/asn1.c
@@ -319,7 +319,7 @@ asn1_header_decode(ASN1_SCK *asn1, guint *cls, guint *con, guint *tag,
gboolean *defp, guint *lenp)
{
int ret;
- guint def, len;
+ guint def, len = 0;
ret = asn1_id_decode (asn1, cls, con, tag);
if (ret != ASN1_ERR_NOERROR)