On Thu, Nov 20, 2014 at 01:57:12PM +0800, arei.gong...@huawei.com wrote: > From: Gonglei <arei.gong...@huawei.com> > > If is_connected parameter is false, the saddr > variable will no initialize. Coverity report: > uninit_use: Using uninitialized value saddr.sin_port. > > We don't need add saddr information to nc->info_str > when is_connected is false. > > Signed-off-by: Gonglei <arei.gong...@huawei.com> > --- > net/socket.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
pgpebySdloTSs.pgp
Description: PGP signature