]> git.sur5r.net Git - openldap/commitdiff
fix previous commit
authorPierangelo Masarati <ando@openldap.org>
Sat, 22 Jan 2005 12:27:45 +0000 (12:27 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 22 Jan 2005 12:27:45 +0000 (12:27 +0000)
servers/slapd/backend.c

index 43018f39db239ca585517c291cd548d6aa306758..105dffe4f911dc34db780da903e811664d712d93 100644 (file)
@@ -1439,7 +1439,7 @@ backend_attribute(
 
                        rc = backend_operational( op, &rs );
 
-                       if ( rc == LDAP_SUCCESS ) {
+                       if ( rc == LDAP_SUCCESS && rs.sr_operational_attrs ) {
                                freeattr = 1;
                                a = rs.sr_operational_attrs;
                        }