commit | da3a3669e182092b50a6e6a428da8620e69a0de9 | [log] [download] |
---|---|---|
author | Cyrill Gorcunov <gorcunov@openvz.org> | Sat Jul 24 01:02:51 2010 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Sat Jul 24 01:02:51 2010 +0400 |
tree | 3955710b4ff1a6fa58b54c2dfb95227c8ed1d7d5 | |
parent | 4776984092a0b43ab2e5e84f07cbc3003510c67c [diff] |
write_conf: Fix potential NULL dereference In case if strdup failed we should not call strlen(NULL). Note we return VZ_CONFIG_SAVE_ERROR instead of plain 1 since the caller (ex. vps_remove_cfg_param) not always return the same error code. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>