mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Minor refactor to SSL BinPAC grammer.
An unsized array already parses indefinitely. &until($element <= 0) just causes nonsense code to be generated. I.e. checking a pointer that can never even be null against <= 0. And the compare would happen after delete'ing the pointer, making it even odder (though still benign).
This commit is contained in:
parent
19b15217f0
commit
bb8f102b2c
1 changed files with 1 additions and 1 deletions
|
@ -667,7 +667,7 @@ type CiphertextRecord(rec: SSLRecord) = record {
|
|||
######################################################################
|
||||
|
||||
type SSLPDU(is_orig: bool) = record {
|
||||
records : SSLRecord(is_orig)[] &transient &until($element <= 0);
|
||||
records : SSLRecord(is_orig)[] &transient;
|
||||
} &byteorder = bigendian;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue