Disconnect named pipes that failed connection.
Found by testing.
Signed-off-by: Alin Gabriel Serdean <aserdean@cloudbasesolutions.com>
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
} else {
VLOG_ERR_RL(&rl, "Could not connect named pipe. Last "
"error: %s", ovs_lasterror_to_string());
+ DisconnectNamedPipe(p->fd);
return EINVAL;
}
}
} else if (last_error != ERROR_PIPE_CONNECTED) {
VLOG_ERR_RL(&rl, "Could not connect synchronous named pipe. Last "
"error: %s", ovs_lasterror_to_string());
+ DisconnectNamedPipe(p->fd);
return EINVAL;
} else {
/* If the pipe is connected, signal an event. */