From: Jason Ish Date: Tue, 6 Jun 2017 23:02:14 +0000 (-0600) Subject: rust dns: fixup for nom 3.0 X-Git-Tag: suricata-4.0.0-beta1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2756%2Fhead;p=thirdparty%2Fsuricata.git rust dns: fixup for nom 3.0 --- diff --git a/rust/src/dns/parser.rs b/rust/src/dns/parser.rs index 8794b311db..d1e277a7a5 100644 --- a/rust/src/dns/parser.rs +++ b/rust/src/dns/parser.rs @@ -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)