diff options
author | Gerald Combs <gerald@wireshark.org> | 2006-01-10 23:28:16 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2006-01-10 23:28:16 +0000 |
commit | 12331f9cb41abab2db78d889f18883dcdcff7a50 (patch) | |
tree | dcb5238c0509f5444e46e8293ace6a746b233360 /asn1 | |
parent | 41c3bca69647cc3cd1d59116558d2c65dbdfe72d (diff) |
Make sure last_dn is big enough, and set it to NULL when we're
finished with it. This should fix the current menagerie failure
in Buildbot.
Fix up whitespace.
svn path=/trunk/; revision=16995
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/x509if/x509if.cnf | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/asn1/x509if/x509if.cnf b/asn1/x509if/x509if.cnf index 23cff72f4b..1cd9bb1552 100644 --- a/asn1/x509if/x509if.cnf +++ b/asn1/x509if/x509if.cnf @@ -232,7 +232,7 @@ DistinguishedName B "2.5.4.49" "id-at-distinguishedName" const char *fmt; dn_one_rdn = FALSE; /* reset */ - last_dn = ep_alloc(MAX_RDN_STR_LEN); *last_dn = '\0'; + last_dn = ep_alloc(MAX_DN_STR_LEN); *last_dn = '\0'; top_of_dn = NULL; %(DEFAULT_BODY)s @@ -245,7 +245,9 @@ DistinguishedName B "2.5.4.49" "id-at-distinguishedName" (fmt = val_to_str(hf_index, fmt_vals, "")) && *fmt) { /* we have a format */ col_append_fstr(pinfo->cinfo, COL_INFO, " %%s%%s", fmt, last_dn); - } + } + + last_dn = NULL; #.FN_BODY RDNSequence/_item |