diff options
author | Nathan Kinder <nkinder@redhat.com> | 2009-01-21 00:00:32 +0000 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2009-01-21 00:00:32 +0000 |
commit | a23e607e3368f009e26f0e65e5ad8f34665da4f1 (patch) | |
tree | 6e9b5231b2e90b9a887fe32bd84bfbb7bb591e5d /ldap/servers/slapd/attrlist.c | |
parent | b9a1fee404f818bbf1ce20452e199caf64e24855 (diff) | |
download | ds-a23e607e3368f009e26f0e65e5ad8f34665da4f1.tar.gz ds-a23e607e3368f009e26f0e65e5ad8f34665da4f1.tar.xz ds-a23e607e3368f009e26f0e65e5ad8f34665da4f1.zip |
Resolves: 474945
Summary: Consistently deal with attr syntax info struct ref count when fetcvhing and returning them to the global hashtables.
Diffstat (limited to 'ldap/servers/slapd/attrlist.c')
-rw-r--r-- | ldap/servers/slapd/attrlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ldap/servers/slapd/attrlist.c b/ldap/servers/slapd/attrlist.c index 6946c0cc..b200472b 100644 --- a/ldap/servers/slapd/attrlist.c +++ b/ldap/servers/slapd/attrlist.c @@ -63,11 +63,11 @@ attrlist_free(Slapi_Attr *alist) int attrlist_find_or_create(Slapi_Attr **alist, const char *type, Slapi_Attr ***a) { - return attrlist_find_or_create_locking_optional(alist, type, a, PR_TRUE, PR_TRUE); + return attrlist_find_or_create_locking_optional(alist, type, a, PR_TRUE); } int -attrlist_find_or_create_locking_optional(Slapi_Attr **alist, const char *type, Slapi_Attr ***a, PRBool use_lock, PRBool ref_count) +attrlist_find_or_create_locking_optional(Slapi_Attr **alist, const char *type, Slapi_Attr ***a, PRBool use_lock) { int rc= 0; /* found */ if ( *a==NULL ) @@ -82,7 +82,7 @@ attrlist_find_or_create_locking_optional(Slapi_Attr **alist, const char *type, S if( **a==NULL ) { **a = slapi_attr_new(); - slapi_attr_init_locking_optional(**a, type, use_lock, ref_count); + slapi_attr_init_locking_optional(**a, type, use_lock); rc= 1; /* created */ } return rc; |