Fix: remove double consumer_del_stream in error path
During a recv_stream call, an error path could have try to delete a
stream two times and could ultimately have triggererd a double free and
refcount issues on the channel.
Signed-off-by: David Goulet <email address hidden>
Add a lttcomm socket ops pointer check before calling the close
operation of the socket. This can happen if the socket object was
allocated but NOT created.
Furthermore, a fallback is added if no ops pointer is found, the
close(3) system call is used.
This commit also fixes the fact that relayd_close could have been called
on a socket with an invalid operation pointer during the relayd object
creation process in an error path.
Fixes #429
Signed-off-by: David Goulet <email address hidden>