• Sven Eckelmann's avatar
    batctl: Fix command restriction for meshif-only prefix · 1d7dba84
    Sven Eckelmann authored
    The allowed commands for a meshif prefix are evaluated by comparing the
    type bits. These are initialized completely when allowing non-meshif and
    meshif commands. But a meshif-only prefix did an OR without previously
    setting the types bitfield to 0. This could have allowed too many commands
    than expected.
    
    Fixes: 23f39261 ("batctl: Replace '-m meshif' option with selector prefix")
    Signed-off-by: 's avatarSven Eckelmann <sven@narfation.org>
    1d7dba84