From ff919168fb95225d195b536795763dfa92b129a6 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 1 Dec 2003 07:50:27 +0000 Subject: [PATCH] if rule is an URI, must have a filter field --- servers/slapd/saslauthz.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index ca9a416d0d..01525201b7 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -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, -- 2.39.5