]> git.sur5r.net Git - openldap/commitdiff
Cast getpeername() arg from struct sockaddr_un* to struct sockaddr*
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 11 Jun 2009 16:21:52 +0000 (16:21 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 11 Jun 2009 16:21:52 +0000 (16:21 +0000)
libraries/libldap/os-local.c

index aafce8b8e25a71410e7827843434b5580ca7a54c..6f798a71fa1f20e2c0aeafc25171fa6e1360983b 100644 (file)
@@ -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 );