commit | aa88bf9ea122e92d4bc90a4319742b9a693129c8 | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Fri Apr 05 15:27:47 2013 -0700 |
committer | Kir Kolyshkin <kir@openvz.org> | Fri Apr 05 15:27:47 2013 -0700 |
tree | 72958f4185c1c6f623784f3c0c14f0562a83f311 | |
parent | 1ed05edf3e593b2ba6af2e73a5c3ce1864c639be [diff] |
vps_save_config(): don't let old_p be NULL In case file denoted by 'path' is non-existent, old_p stays NULL, leading to null pointer dereferences down the line. Fix logic. Found by coverity, CID 996856. Signed-off-by: Kir Kolyshkin <kir@openvz.org>