pdump: close client socket on error
authorReshma Pattan <reshma.pattan@intel.com>
Mon, 4 Jul 2016 16:17:29 +0000 (17:17 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 10 Jul 2016 13:06:30 +0000 (15:06 +0200)
commit2641a532ed86f33913ac0379ec6b3fa97a27c137
treed3d7c04c074db368b8a6926424d8bc664e34efd5
parent6dc34e0afe7a7b8815c4e09ae5cc7b01486df420
pdump: close client socket on error

Close the client socket before returning on error.

Coverity issue: 127555
Fixes: f3c1829130ac ("pdump: check missing home environment variable")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
lib/librte_pdump/rte_pdump.c