]> git.sur5r.net Git - openldap/commitdiff
Import ITS#2961 fix from HEAD
authorHoward Chu <hyc@openldap.org>
Mon, 22 Mar 2004 21:33:55 +0000 (21:33 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 22 Mar 2004 21:33:55 +0000 (21:33 +0000)
servers/slapd/sasl.c

index e108351101ca251a55b23450ff0096e88a3ecca5..c1814de44e8d37894cbe973d6176a261bda4f528 100644 (file)
@@ -748,6 +748,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 */