mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
Minor cleanup for sendmsg
This commit is contained in:
parent
0aef00c16f
commit
cff5621814
1 changed files with 3 additions and 3 deletions
|
|
@ -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 a new issue