memif: fix uninitialized pointer read coverity error 41/9441/1
authorSteven <sluong@cisco.com>
Thu, 16 Nov 2017 00:00:38 +0000 (16:00 -0800)
committerSteven <sluong@cisco.com>
Thu, 16 Nov 2017 00:07:36 +0000 (16:07 -0800)
commit9d72120a6986e642c5b16c8650ad266188adf142
tree8f71966bdaa8651e911fbfa0ff8fefdf30cec7c4
parent93149bb4cd0a137b2a6da4b0d9f8cb2032e44734
memif: fix uninitialized pointer read coverity error

Set the content of tmp.sock prior to calling memif_msg_send_disconnect.
Also fix the problem socket was not close in the same spot due to
error encountered.

Change-Id: I8f54ebad2250d1944afcc52e71d2a59da05362af
Signed-off-by: Steven <sluong@cisco.com>
src/plugins/memif/socket.c