]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/saslauthz.c
Missed a test in AttributeDescription commit
[openldap] / servers / slapd / saslauthz.c
index e7c7a787429e0621b420e2ee7922daddac360b91..5a8b689be537898e4c4309767a7ad24407fc3808 100644 (file)
 #include <ac/stdlib.h>
 #include <stdio.h>
 
-#include "slap.h"
-#include "proto-slap.h"
-
 #include <ac/string.h>
 
+#include "slap.h"
+
 #ifdef HAVE_CYRUS_SASL
 #include <limits.h>
 #include <sasl.h>
 #include <ldap_pvt.h>
 #endif
 
-
-
-
-
 /* URI format: ldap://<host>/<base>[?[<attrs>][?[<scope>][?[<filter>]]]]   */
 
 int slap_parseURI( char *uri, char **searchbase, int *scope, Filter **filter )
@@ -572,7 +567,6 @@ slap_sasl_check_authz(char *searchDN, char *assertDN, char *attr, char *authc)
 
 COMPLETE:
        if( vals ) ber_bvecfree( vals );
-       if( ad ) ad_free( ad, 1 );
 
 #ifdef NEW_LOGGING
        LDAP_LOG(( "sasl", LDAP_LEVEL_ENTRY,