aya: fix program array key size

pull/1/head
Alessandro Decina 4 years ago
parent 0b3e532d7a
commit b6cd813af5

@ -55,7 +55,7 @@ impl<T: Deref<Target = Map>> ProgramArray<T> {
map_type: map_type as u32,
})?;
}
let expected = mem::size_of::<RawFd>();
let expected = mem::size_of::<u32>();
let size = map.obj.def.key_size as usize;
if size != expected {
return Err(MapError::InvalidKeySize { size, expected });

Loading…
Cancel
Save