Skip to content
Snippets Groups Projects
Commit fffc29df authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#159 fix. ldaphost may be NULL when used as printf "%s" argument.

parent 06239ebd
No related branches found
No related tags found
No related merge requests found
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment