mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
Minor cleanup for sendmsg
This commit is contained in:
parent
0aef00c16f
commit
cff5621814
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user