From: Hallvard Furuseth Date: Thu, 11 Jun 2009 16:21:52 +0000 (+0000) Subject: Cast getpeername() arg from struct sockaddr_un* to struct sockaddr* X-Git-Tag: ACLCHECK_0~500 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=13cbd433bd3659c8c765b03a1aadc445a6861b78;p=openldap Cast getpeername() arg from struct sockaddr_un* to struct sockaddr* --- diff --git a/libraries/libldap/os-local.c b/libraries/libldap/os-local.c index aafce8b8e2..6f798a71fa 100644 --- a/libraries/libldap/os-local.c +++ b/libraries/libldap/os-local.c @@ -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 );