cr_page_server(): avoid using uninit variable
In case opts.ps_socket is set (see commit 7058714f), 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@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
Showing
Please
register
or
sign in
to comment