[Fedora-directory-devel] Please Review: (474945) Adding duplicate schema over LDAP triggers assertion in attrsyntax

Nathan Kinder nkinder at redhat.com
Mon Jan 19 19:10:23 UTC 2009


https://bugzilla.redhat.com/show_bug.cgi?id=474945
Resolves: bug 474945
Bug Description: An assertion is triggered when adding a duplicate attribute
  to the schema over LDAP in a debug build.
Reviewed by: ???
Files: see diff
Branch: HEAD
Fix Description: We were calling attr_syntax_delete() on a syntax that we
  fetched using attr_syntax_get_by_name_locking_optional().

  You are supposed to use attr_syntax_return() when you are finished with a
  syntax that you fetch in this way, which will take care of freeing it 
if it is
  required.  There was already code that was doing the proper thing, so 
the call
  to attr_syntax_delete() can simply be removed.
Platforms tested: RHEL5
Flag Day: no
Doc impact: no
https://bugzilla.redhat.com/attachment.cgi?id=329387&action=diff




More information about the Fedora-directory-devel mailing list