From: Howard Chu Date: Tue, 2 Mar 2004 18:37:49 +0000 (+0000) Subject: ITS#2961 check for NULL authcDN X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~386 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4a8bb3991f3ddaedd91301e6ecbc5581c73d3cff;p=openldap ITS#2961 check for NULL authcDN --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 6ebb5d1cf6..61d9234a1d 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -897,6 +897,12 @@ slap_sasl_authorize( /* Skip PROP_CONN */ prop_getnames( props, slap_propnames+1, auxvals ); + /* Should not happen */ + if ( !auxvals[0].values ) { + sasl_seterror( sconn, 0, "invalid authcid" ); + return SASL_NOAUTHZ; + } + AC_MEMCPY( &authcDN, auxvals[0].values[0], sizeof(authcDN) ); /* Nothing to do if no authzID was given */