Commit 2adbbcba authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

pipes: Don't forget to init pipe_info::create

Otherwise its value might be taken from heap (it's xmalloc'ed).
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 70b65c9a
...@@ -273,6 +273,7 @@ int collect_pipes(void) ...@@ -273,6 +273,7 @@ int collect_pipes(void)
if (pi == NULL) if (pi == NULL)
break; break;
pi->create = 0;
ret = read_img_eof(fd, &pi->pe); ret = read_img_eof(fd, &pi->pe);
if (ret <= 0) if (ret <= 0)
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment