jail: netifd: check target netns fd before using it
authorDaniel Golle <daniel@makrotopia.org>
Sun, 17 Oct 2021 08:34:55 +0000 (09:34 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 17 Oct 2021 18:33:56 +0000 (19:33 +0100)
commite1d7cee59b08655c224999b21e9fbf139f5ee54e
treee84a9955d43c597da81b05144c3efd166dc08171
parentd2a2eccbd145d246e3967aae0d75f20655426163
jail: netifd: check target netns fd before using it

Make sure filehandler is non-negative before using it.

Coverity CID: 1492888 Negative returns
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/netifd.c