/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2011 The OpenLDAP Foundation.
+ * Copyright 1998-2012 The OpenLDAP Foundation.
* Portions Copyright 1998-2003 Kurt D. Zeilenga.
* Portions Copyright 1998-2001 Net Boolean Incorporated.
* Portions Copyright 2001-2003 IBM Corporation.
{
char *entrydn = NULL, *rdn = NULL, buf[ 4096 ];
FILE *fp = NULL;
- LDAP *ld;
+ LDAP *ld = NULL;
int rc, retval, havedn;
tool_init( TOOL_MODRDN );
}
}
- tool_unbind( ld );
- tool_destroy();
fail:
if ( fp && fp != stdin ) fclose( fp );
if ( entrydn ) free( entrydn );
if ( rdn ) free( rdn );
- return( retval );
+ tool_exit( ld, retval );
}
static int domodrdn(