diff options
author | Gerald Combs <gerald@wireshark.org> | 2008-03-03 22:28:35 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2008-03-03 22:28:35 +0000 |
commit | 7f097fdc9bdee9138924e000a0579e3e75370133 (patch) | |
tree | 39ea11a97388eae037c6e405c9b85814df1d312b /asn1 | |
parent | af7d55655c13e00de9b5cb824b5cb32683a0e166 (diff) | |
download | wireshark-7f097fdc9bdee9138924e000a0579e3e75370133.tar.gz wireshark-7f097fdc9bdee9138924e000a0579e3e75370133.tar.bz2 wireshark-7f097fdc9bdee9138924e000a0579e3e75370133.zip |
Make sure we initialize a TVB. Fixes bug 2329.
svn path=/trunk/; revision=24543
Diffstat (limited to 'asn1')
-rw-r--r-- | asn1/x509sat/x509sat.cnf | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/asn1/x509sat/x509sat.cnf b/asn1/x509sat/x509sat.cnf index 34e4dc5d83..3bbd5dfab0 100644 --- a/asn1/x509sat/x509sat.cnf +++ b/asn1/x509sat/x509sat.cnf @@ -295,11 +295,14 @@ XDayOf/fifth fifth_dayof #.FN_PARS SyntaxBMPString VAL_PTR = &wide_tvb #.FN_HDR SyntaxBMPString - tvbuff_t *wide_tvb; + tvbuff_t *wide_tvb = NULL; char *string; #.END #.FN_FTR SyntaxBMPString + if (! wide_tvb) { + return offset; + } string = tvb_get_ephemeral_faked_unicode (wide_tvb, 0, tvb_length(wide_tvb) / 2, FALSE); proto_item_append_text(actx->created_item, " %s", string); |