Proper way to reference potentially missing key
Woot4moo <[email protected]>
| Newsgroups | gmane.comp.security.detection.bro |
|---|---|
| Message-ID | <CALiK30_8D5O-Q7LcqjFQ-yk0HL_hUgFRmcJBC36S8ukueSS6Fg@mail.gmail.com> |
How can one reference a potentially missing key such that the script will not terminate? For example in a file_new event, if I reference the mime_type attribute and it is uninitialized I receive “no such field in record” Example code below: if( f?$mime_type) #error here _______________________________________________ Zeek mailing list [email protected] http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/zeek