Fix build issues

This commit is contained in:
Kurt Zeilenga 2000-09-21 23:00:51 +00:00
parent 2aebaba70e
commit d78a515860
2 changed files with 12 additions and 12 deletions

View File

@ -313,6 +313,17 @@ read_config( const char *fname )
global_realm = ch_strdup( cargv[1] ); global_realm = ch_strdup( cargv[1] );
} }
} else if ( !strcasecmp( cargv[0], "saslregexp" ) ) {
if ( cargc != 3 ) {
Debug( LDAP_DEBUG_ANY,
"%s: line %d: need 2 args in \"saslregexp <match> <replace>\"\n",
fname, lineno, 0 );
return( 1 );
}
rc = slap_sasl_regexp_config( cargv[1], cargv[2] );
if ( rc )
return rc;
/* SASL security properties */ /* SASL security properties */
} else if ( strcasecmp( cargv[0], "sasl-secprops" ) == 0 ) { } else if ( strcasecmp( cargv[0], "sasl-secprops" ) == 0 ) {
char *txt; char *txt;
@ -1111,17 +1122,6 @@ read_config( const char *fname )
#endif #endif
} else if ( !strcasecmp( cargv[0], "saslregexp" ) ) {
if ( cargc != 3 ) {
Debug( LDAP_DEBUG_ANY,
"%s: line %d: need 2 args in \"saslregexp <match> <replace>\"\n",
fname, lineno, 0 );
return( 1 );
}
rc = slap_sasl_regexp_config( cargv[1], cargv[2] );
if ( rc )
return rc;
/* pass anything else to the current backend info/db config routine */ /* pass anything else to the current backend info/db config routine */
} else { } else {
if ( bi != NULL ) { if ( bi != NULL ) {

View File

@ -1305,7 +1305,7 @@ int connection_internal_open( Connection **conn, LDAP **ldp, char *id )
} }
/* The connection_get() will have locked the connection's mutex */ /* The connection_get() will have locked the connection's mutex */
pthread_mutex_unlock( &((*conn)->c_mutex) ); ldap_pvt_thread_mutex_unlock( &((*conn)->c_mutex) );
return( LDAP_SUCCESS ); return( LDAP_SUCCESS );
} }