Commit 7df2a0f3 authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

ITS#8847 Allocate a large enough buffer

parent ae77343d
Pipeline #2531 passed with stage
in 50 minutes and 5 seconds
......@@ -860,10 +860,10 @@ ldap_dump_connection( LDAP *ld, LDAPConn *lconns, int all )
struct berval frombv = BER_BVC(from);
ber_socket_t sb;
if ( ber_sockbuf_ctrl( lc->lconn_sb, LBER_SB_OPT_GET_FD, &sb ) == 1 ) {
struct sockaddr_in sin;
Sockaddr sin;
socklen_t len = sizeof( sin );
if ( getsockname( sb, (struct sockaddr *)&sin, &len ) == 0 ) {
ldap_pvt_sockaddrstr( (Sockaddr *) &sin, &frombv );
ldap_pvt_sockaddrstr( &sin, &frombv );
Debug1( LDAP_DEBUG_TRACE, "* from: %s\n",
( from == NULL ) ? "(null)" : from );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment