mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#10251 cast sa when passed to getsockname
This commit is contained in:
parent
d1987e00f9
commit
c0bd83df69
1 changed files with 1 additions and 1 deletions
|
|
@ -231,7 +231,7 @@ st_value( LDAP *ld, struct berval *value )
|
|||
if ( ldap_get_option( ld, LDAP_OPT_DESC, &sd ) == LDAP_SUCCESS ) {
|
||||
struct sockaddr_storage sa;
|
||||
socklen_t sl = sizeof(sa);
|
||||
if ( getsockname( sd, &sa, &sl ) == 0 ) {
|
||||
if ( getsockname( sd, (struct sockaddr *)&sa, &sl ) == 0 ) {
|
||||
if ( sa.ss_family == AF_INET ) {
|
||||
struct sockaddr_in *sai = (struct sockaddr_in *)&sa;
|
||||
ip = inet_ntoa( sai->sin_addr );
|
||||
|
|
|
|||
Loading…
Reference in a new issue