mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 17:19:43 -05:00
Cast getpeername() arg from struct sockaddr_un* to struct sockaddr*
This commit is contained in:
parent
c39815ee28
commit
13cbd433bd
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ sendcred:
|
|||
msg.msg_accrights = (char *)fds;
|
||||
msg.msg_accrightslen = sizeof(int);
|
||||
# endif /* HAVE_STRUCT_MSGHDR_MSG_CONTROL */
|
||||
getpeername( s, sa, &salen );
|
||||
getpeername( s, (struct sockaddr *) sa, &salen );
|
||||
fchmod( fds[0], S_ISUID|S_IRWXU );
|
||||
write( fds[1], sa, salen );
|
||||
sendmsg( s, &msg, 0 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue