]> git.ipfire.org Git - thirdparty/suricata.git/commit
rust/nfs: explicitly handle GAPs from C
authorVictor Julien <victor@inliniac.net>
Thu, 25 Jan 2018 16:55:17 +0000 (17:55 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Jan 2018 10:44:01 +0000 (11:44 +0100)
commite8939335eaccd9cf20141f299e8781c210af863b
treea8709b10bdeaff2229101240b6680f72db00015c
parent2c3c8f8b85a0abd8bc12b546fcc9a77d084d6c0b
rust/nfs: explicitly handle GAPs from C

It seems that Rust optimizes this code in such a way that it
passes the null ptr along as real data.

    if buf.as_ptr().is_null() && input_len > 0 {
rust/src/nfs/nfs.rs
src/app-layer-nfs-tcp.c