From cff56218143eac5ff437faaa24a357b230970ea2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 4 Mar 2003 22:14:57 +0000 Subject: [PATCH] Minor cleanup for sendmsg --- libraries/libldap/os-local.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/libldap/os-local.c b/libraries/libldap/os-local.c index 54867fc2f8..aef423150e 100644 --- a/libraries/libldap/os-local.c +++ b/libraries/libldap/os-local.c @@ -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; -- 2.39.5