[CRIU] [PATCH] cr_page_server(): avoid using uninit variable

Pavel Emelyanov xemul at parallels.com
Thu May 7 08:37:55 PDT 2015


On 05/06/2015 01:25 AM, Kir Kolyshkin wrote:
> In case opts.ps_socket is set (see commit 7058714),
> we don't call accept() and so the peer address (caddr)
> is left uninitialized, but we try to print it.
> 
> Fix by moving the printing code to right after accept().
> 
> Reported by Coverity, CID 51645.
> 
> Signed-off-by: Kir Kolyshkin <kir at openvz.org>

Applied, thanks



More information about the CRIU mailing list