Skip to content
Snippets Groups Projects
Commit 3a26ef5b authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

silence warnings

parent a7349c10
No related branches found
No related tags found
No related merge requests found
......@@ -382,7 +382,7 @@ int slap_sasl_getdn( Connection *conn, char *id, int len,
len = dn->bv_len + sizeof("uid=")-1 + sizeof(",cn=auth")-1;
/* username may have embedded realm name */
if( realm = strchr( dn->bv_val, '@') ) {
if( ( realm = strchr( dn->bv_val, '@') ) ) {
*realm++ = '\0';
len += sizeof(",cn=")-2;
} else if( user_realm && *user_realm ) {
......
......@@ -286,7 +286,9 @@ static void slap_sasl_rx_exp(
static int slap_sasl_regexp( struct berval *in, struct berval *out )
{
char *saslname = in->bv_val;
#if 0
char *scope[] = { "base", "one", "sub" };
#endif
SaslRegexp_t *reg;
int i;
......@@ -386,7 +388,7 @@ void slap_sasl2dn( Connection *conn,
struct berval *saslname, struct berval *sasldn )
{
int rc;
Backend *be;
Backend *be = NULL;
struct berval dn = { 0, NULL };
int scope = LDAP_SCOPE_BASE;
Filter *filter = NULL;
......
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