Signed-off-by: David Goulet <dgoulet@efficios.com>
ret = connect(sock->fd, (struct sockaddr *) &sock->sockaddr.addr.sin,
sizeof(sock->sockaddr.addr.sin));
if (ret < 0) {
- /*
- * Don't print message on connect error, because connect is used in
- * normal execution to detect if sessiond is alive.
- */
+ PERROR("connect");
goto error_connect;
}
ret = connect(sock->fd, (struct sockaddr *) &sock->sockaddr.addr.sin6,
sizeof(sock->sockaddr.addr.sin6));
if (ret < 0) {
- /*
- * Don't print message on connect error, because connect is used in
- * normal execution to detect if sessiond is alive.
- */
+ PERROR("connect inet6");
goto error_connect;
}