Skip to content
Snippets Groups Projects
Commit e5595314 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Print "<DEFAULT>" instead of "0" when ldapport=0 in ldapsearch -v

parent 22ad6bd6
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,8 @@ main( int argc, char **argv )
#endif
if ( verbose ) {
fprintf( stderr, "ldap_init( %s, %d )\n",
fprintf( stderr,
(ldapport ? "ldap_init( %s, %d )\n" : "ldap_init( %s, <DEFAULT> )\n"),
(ldaphost != NULL) ? ldaphost : "<DEFAULT>",
ldapport );
}
......
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