/* pass anything else to the current backend info/db config routine */
} else {
if ( bi != NULL ) {
- if (bi->bi_config == NULL) {
+ if ( bi->bi_config == 0 ) {
Debug( LDAP_DEBUG_ANY,
"%s: line %d: unknown directive \"%s\" inside backend info definition (ignored)\n",
fname, lineno, cargv[0] );
}
}
} else if ( be != NULL ) {
- if ( be->be_config == NULL ) {
+ if ( be->be_config == 0 ) {
Debug( LDAP_DEBUG_ANY,
"%s: line %d: unknown directive \"%s\" inside backend database definition (ignored)\n",
fname, lineno, cargv[0] );
break;
case '\\':
- SAFEMEMCPY( next, next + 1, strlen( next + 1 ) + 1 );
+ if ( next[1] )
+ SAFEMEMCPY( next,
+ next + 1, strlen( next + 1 ) + 1 );
+ next++; /* dont parse the escaped character */
break;
default: