interface-ip: fix memory corruption bug when using jail network namespaces
authorJunnan Xu <junnanx.xu@gmail.com>
Tue, 31 May 2022 14:31:19 +0000 (22:31 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 31 May 2022 14:44:55 +0000 (15:44 +0100)
commit39ef9fe1388029c476db62889ef2ef5661613321
treea9396f10c199ac6956304eae657c7e0cb5b1198d
parent2e1fcf4cd61222fc0d307d863da71d17fbd34d6f
interface-ip: fix memory corruption bug when using jail network namespaces

memory corruption when resolv_conf specified by input -r parameters
and the resolv_conf length less than "/tmp/resolv.conf-.d/resolv.conf.auto"

Signed-off-by: Junnan Xu <junnanx.xu@gmail.com>
interface-ip.c