]> git.ipfire.org Git - thirdparty/lxc.git/commit
container.conf: Fix off by 2 in option parsing
authorMaximilian Blenk <Maximilian.Blenk@bmw.de>
Wed, 5 Feb 2020 18:17:51 +0000 (19:17 +0100)
committerMaximilian Blenk <Maximilian.Blenk@bmw.de>
Wed, 5 Feb 2020 18:18:25 +0000 (19:18 +0100)
commit52ab03ac1936f05a0e50143b7d1ba92f2722c484
tree5901aa52fa13e8c83e5edb138fa3de5635a10745
parenta8b9febda3102c98468586bc59c69f899f7f1f19
container.conf: Fix off by 2 in option parsing

This commit fixes a off by 2 in config option parsing
(due to missing parenthesis). The error occurs if for instance
lxc.net.0.type is parsed. In that case, the .0 is removed from the
string. However, due to the missing parenthesis, the null terminating
character is off by two which means the modified config option would
be lxc.net.typepe instead of lxc.net.type.

Signed-off-by: Maximilian Blenk <Maximilian.Blenk@bmw.de>
src/lxc/confile.c