Diff for /servers/slapd/back-ldap/modrdn.c between versions 1.17 and 1.18

version 1.17, 2003/02/13 22:29:56 version 1.18, 2003/02/14 04:23:45
Line 1 Line 1
 /* modrdn.c - ldap backend modrdn function */  /* modrdn.c - ldap backend modrdn function */
 /* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/modrdn.c,v 1.16 2003/01/03 19:20:57 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/modrdn.c,v 1.17 2003/02/13 22:29:56 hyc Exp $ */
 /*  /*
  * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.   * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file   * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
Line 61  ldap_back_modrdn( Line 61  ldap_back_modrdn(
 {  {
         struct ldapinfo *li = (struct ldapinfo *) be->be_private;          struct ldapinfo *li = (struct ldapinfo *) be->be_private;
         struct ldapconn *lc;          struct ldapconn *lc;
           int rc;
           ber_int_t msgid;
   
         struct berval mdn = { 0, NULL }, mnewSuperior = { 0, NULL };          struct berval mdn = { 0, NULL }, mnewSuperior = { 0, NULL };
   
Line 146  ldap_back_modrdn( Line 148  ldap_back_modrdn(
         ldap_back_dn_massage( li, dn, &mdn, 0, 1 );          ldap_back_dn_massage( li, dn, &mdn, 0, 1 );
 #endif /* !ENABLE_REWRITE */  #endif /* !ENABLE_REWRITE */
   
         ldap_rename2_s( lc->ld, mdn.bv_val, newrdn->bv_val, mnewSuperior.bv_val, deleteoldrdn );          rc = ldap_rename( lc->ld, mdn.bv_val, newrdn->bv_val, mnewSuperior.bv_val,
                   deleteoldrdn, op->o_ctrls, NULL, &msgid );
   
         if ( mdn.bv_val != dn->bv_val ) {          if ( mdn.bv_val != dn->bv_val ) {
                 free( mdn.bv_val );                  free( mdn.bv_val );
Line 156  ldap_back_modrdn( Line 159  ldap_back_modrdn(
                 free( mnewSuperior.bv_val );                  free( mnewSuperior.bv_val );
         }          }
                   
         return( ldap_back_op_result( lc, conn, op ) );          return( ldap_back_op_result( lc, conn, op, msgid, rc ) );
 }  }

Removed from v.1.17  
changed lines
  Added in v.1.18


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org