mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-13 14:27:59 +08:00
fix initializer
This commit is contained in:
parent
ef4e745c58
commit
e20f94c9f9
@ -58,9 +58,12 @@ int getpeereid( int s, uid_t *euid, gid_t *egid )
|
||||
}
|
||||
#elif defined( DO_SENDMSG )
|
||||
int dummy, fd[2];
|
||||
struct iovec iov = {(char *)&dummy, 1};
|
||||
struct iovec iov;
|
||||
struct msghdr msg = {0};
|
||||
struct stat st;
|
||||
|
||||
iov.iov_base = (char*) &dummy;
|
||||
iov.iov_len = 1;
|
||||
msg.msg_iov = &iov;
|
||||
msg.msg_iovlen = 1;
|
||||
msg.msg_accrights = (char *)fd;
|
||||
|
Loading…
x
Reference in New Issue
Block a user