diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-12 19:38:20 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-12 19:38:20 +0000 |
commit | 69dbd3fb2438f46b338d9f49458c5ef720296dd4 (patch) | |
tree | 234880d14a0af970b0583d4cdc9ae9d9c0677248 /plugins | |
parent | 1de89438f2fd7a4b8677e9d334219d571d198023 (diff) |
Reject the packet if info is NULL under conditions where it'll be used.
svn path=/trunk/; revision=53969
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/asn1/packet-asn1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c index bdf2294e33..d505b721d4 100644 --- a/plugins/asn1/packet-asn1.c +++ b/plugins/asn1/packet-asn1.c @@ -747,6 +747,10 @@ dissect_asn1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct tcpinfo static guint lastseq; gint delta; + /* Reject the packet if info is NULL under conditions where it'll be used. */ + if (is_tcp && info == NULL) + return 0; + pcount++; boffset = 0; |