mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-18 15:20:35 +08:00
ITS#159 fix. ldaphost may be NULL when used as printf "%s" argument.
This commit is contained in:
parent
06239ebd66
commit
fffc29df9b
@ -265,7 +265,9 @@ main( int argc, char **argv )
|
||||
#endif
|
||||
|
||||
if ( verbose ) {
|
||||
printf( "ldap_init( %s, %d )\n", ldaphost, ldapport );
|
||||
printf( "ldap_init( %s, %d )\n",
|
||||
(ldaphost != NULL) ? ldaphost : "<DEFAULT>",
|
||||
ldapport );
|
||||
}
|
||||
|
||||
if (( ld = ldap_init( ldaphost, ldapport )) == NULL ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user