authcId might be NULL

This commit is contained in:
Kurt Zeilenga 2002-06-22 21:27:38 +00:00
parent 0cd54a7d27
commit 3d90fcda3a

View file

@ -903,10 +903,14 @@ do_bind(
#ifdef NEW_LOGGING
LDAP_LOG (( "operation", LDAP_LEVEL_ARGS,
"do_bind: bind to %s as %s via %s (SASL)\n",
ri->ri_hostname, ri->ri_authcId, ri->ri_saslmech ));
ri->ri_hostname,
ri->ri_authcId ? ri->ri_authcId : "-",
ri->ri_saslmech ));
#else
Debug( LDAP_DEBUG_ARGS, "bind to %s as %s via %s (SASL)\n",
ri->ri_hostname, ri->ri_authcId, ri->ri_saslmech );
ri->ri_hostname,
ri->ri_authcId ? ri->ri_authcId : "-",
ri->ri_saslmech );
#endif
#ifdef HAVE_CYRUS_SASL