]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/acl.c
ITS#7473 check DN scope before fetching id2e
[openldap] / servers / slapd / acl.c
index 92b4c43b03b5bbad33f2b188aef715e54f85774b..fc4f90aa7b3d66ddf98444a104e937289ee02478 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2012 The OpenLDAP Foundation.
+ * Copyright 1998-2013 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -614,7 +614,7 @@ slap_acl_get(
                }
 
                /* Is this ACL only for a specific value? */
-               if ( a->acl_attrval.bv_len ) {
+               if ( a->acl_attrval.bv_val ) {
                        if ( val == NULL ) {
                                continue;
                        }