]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/aclparse.c
Switch example slapd.conf to use mdb instead of bdb
[openldap] / servers / slapd / aclparse.c
index 1d2f09fd920a702e3ed75651eb08503e9caa8388..2e8bc4a9cab852a12ea86b62e3753e8dd45b0efb 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
@@ -2830,7 +2830,7 @@ acl_unparse( AccessControl *a, struct berval *bv )
                ptr = acl_safe_strcopy( ptr, "\n" );
        }
 
-       if ( !BER_BVISEMPTY( &a->acl_attrval ) ) {
+       if ( !BER_BVISNULL( &a->acl_attrval ) ) {
                to++;
                ptr = acl_safe_strcopy( ptr, " val." );
                if ( a->acl_attrval_style == ACL_STYLE_BASE &&