* <http://www.OpenLDAP.org/license.html>.
*/
/* ACKNOWLEDGEMENTS:
- * This work was initially developed by the Howard Chu for inclusion
+ * This work was initially developed by Howard Chu for inclusion
* in OpenLDAP Software and subsequently enhanced by Pierangelo
* Masarati.
*/
{
int rc = 0;
struct berval mdn;
+ static char *dmy = "";
assert( dc );
assert( in );
assert( dn );
rc = rewrite_session( dc->rwmap->rwm_rw, dc->ctx,
- ( in->bv_len ? in->bv_val : "" ),
+ ( in->bv_val ? in->bv_val : dmy ),
dc->conn, &mdn.bv_val );
switch ( rc ) {
case REWRITE_REGEXEC_OK:
break;
}
+ if ( mdn.bv_val == dmy ) {
+ BER_BVZERO( &mdn );
+ }
+
return rc;
}