]> git.sur5r.net Git - openldap/commitdiff
if rule is an URI, must have a filter field
authorPierangelo Masarati <ando@openldap.org>
Mon, 1 Dec 2003 07:50:27 +0000 (07:50 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 1 Dec 2003 07:50:27 +0000 (07:50 +0000)
servers/slapd/saslauthz.c

index ca9a416d0da1f1b869eae7982aac2c988cb9db4d..01525201b75b17ca308a308d43a039bf82e6a722 100644 (file)
@@ -448,6 +448,10 @@ int slap_sasl_match( Operation *opx, struct berval *rule,
        }
 
        /* Must run an internal search. */
+       if ( op.oq_search.rs_filter == NULL ) {
+               rc = LDAP_FILTER_ERROR;
+               goto CONCLUDED;
+       }
 
 #ifdef NEW_LOGGING
        LDAP_LOG( TRANSPORT, DETAIL1,