mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-27 09:09:20 -05:00
Revert #if 0
This commit is contained in:
parent
18360d1eb2
commit
4590651cf9
1 changed files with 6 additions and 2 deletions
|
|
@ -585,10 +585,15 @@ ldap_host_connected_to( Sockbuf *sb, const char *host )
|
|||
break;
|
||||
}
|
||||
|
||||
#if 0
|
||||
{
|
||||
char *herr;
|
||||
#ifdef NI_MAXHOST
|
||||
char hbuf[NI_MAXHOST];
|
||||
#elif defined( MAXHOSTNAMELEN
|
||||
char hbuf[MAXHOSTNAMELEN];
|
||||
#else
|
||||
char hbuf[256];
|
||||
#endif
|
||||
hbuf[0] = 0;
|
||||
|
||||
if (ldap_pvt_get_hname( sa, len, hbuf, sizeof(hbuf), &herr ) == 0
|
||||
|
|
@ -597,7 +602,6 @@ ldap_host_connected_to( Sockbuf *sb, const char *host )
|
|||
return LDAP_STRDUP( hbuf );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return host ? LDAP_STRDUP( host ) : NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue