Browse Source

Ticket #47907 - ldclt: assertion failure with -e "add,counteach" -e "object=<ldif file>,rdn=uid:test[A=INCRNNOLOOP(0;24

Bug Description: In case createMissingNodes is called from doAddEntry,
LDAP handle is unbound which makes the following operation such as
ldap_add fail since the handle is already released.

Fix Description: Rempoving ldap_unbind_ext from createMissingNodes.

Reviewed by [email protected] (Thank you, Rich!!)

https://fedorahosted.org/389/ticket/47907
Noriko Hosoi 11 years ago
parent
commit
685607f63d
1 changed files with 0 additions and 11 deletions
  1. 0 11
      ldap/servers/slapd/tools/ldclt/ldapfct.c

+ 0 - 11
ldap/servers/slapd/tools/ldclt/ldapfct.c

@@ -2308,17 +2308,6 @@ createMissingNodes (
   if (freeAttrib (attrs) < 0)
     return (-1);
 
-  ret = ldap_unbind_ext (cnx, NULL, NULL);
-  if (ret != LDAP_SUCCESS)
-  {
-    fprintf (stderr, "ldclt[%d]: T%03d: cannot ldap_unbind(), error=%d (%s)\n",
-			mctx.pid, tttctx->thrdNum, ret, strerror (ret));
-    fflush (stderr);
-    if (addErrorStat (ret) < 0)
-      return (-1);
-    return (-1);
-  }
-
   /*
    * Ouf ! End of this function.
    */