Minor cleanup for sendmsg

This commit is contained in:
Howard Chu 2003-03-04 22:14:57 +00:00
parent 0aef00c16f
commit cff5621814

View File

@ -174,10 +174,10 @@ ldap_pvt_connect(LDAP *ld, ber_socket_t s, struct sockaddr_un *sa, int async)
sendcred:
{
int fds[2];
/* Abandon, noop, has no reply */
struct iovec iov = {abandonPDU, sizeof(abandonPDU)};
struct msghdr msg = {0};
if (pipe(fds) == 0) {
/* Abandon, noop, has no reply */
struct iovec iov = {abandonPDU, sizeof(abandonPDU)};
struct msghdr msg = {0};
msg.msg_iov = &iov;
msg.msg_iovlen = 1;
msg.msg_accrights = (char *)fds;