-/* Copyright (C) 2017-2018 Open Information Security Foundation
+/* Copyright (C) 2017-2020 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
0
}
-
}
-/* Copyright (C) 2017 Open Information Security Foundation
+/* Copyright (C) 2017-2020 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
-/* Copyright (C) 2017-2018 Open Information Security Foundation
+/* Copyright (C) 2017-2020 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
// store all handle/filename mappings
match many0_nfs3_response_readdirplus_entries(d) {
Ok((_, ref entries)) => {
+ SCLogDebug!("READDIRPLUS ENTRIES reply {:?}", entries);
for ce in entries {
SCLogDebug!("ce {:?}", ce);
- match ce.entry {
- Some(ref e) => {
- SCLogDebug!("e {:?}", e);
- match e.handle {
- Some(ref h) => {
- SCLogDebug!("h {:?}", h);
- self.namemap.insert(h.value.to_vec(), e.name_vec.to_vec());
- },
- _ => { },
- }
- },
- _ => { },
+ if let Some(ref e) = ce.entry {
+ SCLogDebug!("e {:?}", e);
+ if let Some(ref h) = e.handle {
+ SCLogDebug!("h {:?}", h);
+ self.namemap.insert(h.value.to_vec(),
+ e.name_vec.to_vec());
+ }
}
}
-
- SCLogDebug!("READDIRPLUS ENTRIES reply {:?}", entries);
},
_ => {
self.set_event(NFSEvent::MalformedData);
0
}
-
}
-
-/* Copyright (C) 2018 Open Information Security Foundation
+/* Copyright (C) 2018-2020 Open Information Security Foundation
*
* You can copy, redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free