mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#2961 check for NULL authcDN
This commit is contained in:
parent
b78701daec
commit
4a8bb3991f
1 changed files with 6 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue