From: Howard Chu Date: Tue, 4 Mar 2003 22:14:57 +0000 (+0000) Subject: Minor cleanup for sendmsg X-Git-Tag: NO_SLAP_OP_BLOCKS~184 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cff56218143eac5ff437faaa24a357b230970ea2;p=openldap Minor cleanup for sendmsg --- 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;