diff --git a/clients/tools/common.c b/clients/tools/common.c index 4b913dd306..94b6691052 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -1269,7 +1269,7 @@ tool_conn_setup( int dont, void (*private_setup)( LDAP * ) ) goto dnssrv_free; } - rc = ldap_domain2hostlist( domain, &hostlist ); + rc = ldap_domain2hostlist_proto( domain, &hostlist, lud->lud_scheme ); if ( rc ) { fprintf( stderr, "DNS SRV: Could not turn "