]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
rust dns: fixup for nom 3.0 2756/head
authorJason Ish <ish@unx.ca>
Tue, 6 Jun 2017 23:02:14 +0000 (17:02 -0600)
committerJason Ish <ish@unx.ca>
Wed, 7 Jun 2017 02:25:45 +0000 (20:25 -0600)
rust/src/dns/parser.rs

index 8794b311db5a3b6f35d79b4495482f62757e300d..d1e277a7a57c4f897317aaff430bb2c127e17e58 100644 (file)
@@ -199,7 +199,7 @@ pub fn dns_parse_rdata<'a>(data: &'a [u8], message: &'a [u8], rrtype: u16)
         DNS_RTYPE_MX => {
             // For MX we we skip over the preference field before
             // parsing out the name.
-            closure!(do_parse!(
+            closure!(&'a [u8], do_parse!(
                 be_u16 >>
                 name: apply!(dns_parse_name, message) >>
                     (name)