jail: guard boolean blobmsg attributes
authorDaniel Golle <daniel@makrotopia.org>
Tue, 27 Oct 2020 22:15:09 +0000 (22:15 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 28 Oct 2020 13:45:46 +0000 (13:45 +0000)
commit2f381fe51c21fe195389ef11bff116362bc1915f
treee8f9aa64560ef49cd790cdee916fd3c89191ce30
parent33b799b94c38fd2d3961b465a8114e384573a6d6
jail: guard boolean blobmsg attributes

ujail tried to parse boolean values in config.json even if they were
not present which lead to segfaults.
Check if booleans are actually present before trying to parse them.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c