Diff for /clients/tools/common.c between versions 1.70 and 1.71

version 1.70, 2006/01/09 20:27:45 version 1.71, 2006/01/09 22:00:28
Line 1 Line 1
 /* common.c - common routines for the ldap client tools */  /* common.c - common routines for the ldap client tools */
 /* $OpenLDAP: pkg/ldap/clients/tools/common.c,v 1.69 2006/01/09 04:22:46 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/clients/tools/common.c,v 1.70 2006/01/09 20:27:45 ando Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1998-2006 The OpenLDAP Foundation.   * Copyright 1998-2006 The OpenLDAP Foundation.
Line 1119  tool_server_controls( LDAP *ld, LDAPCont Line 1119  tool_server_controls( LDAP *ld, LDAPCont
         int i = 0, j, crit = 0, err;          int i = 0, j, crit = 0, err;
         LDAPControl c[10], **ctrls;          LDAPControl c[10], **ctrls;
   
           if ( ! ( assertctl
                   || authzid
                   || manageDIT
                   || manageDSAit
                   || noop
                   || preread
                   || postread
   #ifdef LDAP_CONTROL_X_CHAINING_BEHAVIOR
                   || chaining
   #endif /* LDAP_CONTROL_X_CHAINING_BEHAVIOR */
                   || count ) )
           {
                   return;
           }
   
         ctrls = (LDAPControl**) malloc(sizeof(c) + (count+1)*sizeof(LDAPControl*));          ctrls = (LDAPControl**) malloc(sizeof(c) + (count+1)*sizeof(LDAPControl*));
         if ( ctrls == NULL ) {          if ( ctrls == NULL ) {
                 fprintf( stderr, "No memory\n" );                  fprintf( stderr, "No memory\n" );

Removed from v.1.70  
changed lines
  Added in v.1.71


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