From 65cdfa68f044e861c01c539f6bf035e0f5c76a80 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 22 Jan 2001 22:03:44 +0000 Subject: [PATCH] Fix more typos --- servers/slapd/sasl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index b33c08dd6c..71abec70ad 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -111,7 +111,7 @@ int slap_sasl_getdn( Connection *conn, char *id, char **dnptr, int flags ) /* An authcID needs to be converted to authzID form */ if( flags & FLAG_GETDN_AUTHCID ) { if( sasl_external_x509dn_convert && conn->c_sasl_bind_mech - && ( strcasecmp( LDAP_SASL_EXTERNAL, conn->c_sasl_bind_mech ) == 0 ) + && ( strcasecmp( "EXTERNAL", conn->c_sasl_bind_mech ) == 0 ) && len && dn[0] == '/' && dn[len-1]== '/' ) { /* check SASL external for X.509 style DN and */ @@ -119,7 +119,7 @@ int slap_sasl_getdn( Connection *conn, char *id, char **dnptr, int flags ) char *tmpdn = ldap_dcedn2dn( id ); len = strlen( tmpdn ); - dn = ch_malloc( dn, len+4 ); + dn = ch_malloc( len+4 ); dn[0] = 'd'; dn[1] = 'n'; dn[2] = ':'; @@ -128,7 +128,7 @@ int slap_sasl_getdn( Connection *conn, char *id, char **dnptr, int flags ) } else { /* convert to u: form */ - dn = ch_malloc( dn, len+3 ); + dn = ch_malloc( len+3 ); dn[0] = 'u'; dn[1] = ':'; memmove( &dn[2], id, len+1 ); -- 2.39.5