Operation *op
)
{
- char *dn, *ndn, *text;
+ char *dn, *ndn = NULL, *text;
Backend *be;
int rc;
NULL, "Function not implemented", NULL, NULL );
}
cleanup:
- free( ndn );
+ if( ndn != NULL ) free( ndn );
free( dn );
return rc;
}
Operation *op
)
{
- char *dn, *ndn;
+ char *dn, *ndn = NULL;
char *last;
ber_tag_t tag;
ber_len_t len;
cleanup:
free( dn );
- free( ndn );
+ if( ndn != NULL ) free( ndn );
if ( modlist != NULL )
slap_modlist_free( modlist );
if ( mods != NULL )
Operation *op
)
{
- char *dn, *ndn, *newrdn;
+ char *dn, *ndn = NULL, *newrdn;
ber_int_t deloldrdn;
Backend *be;
/* Vars for LDAP v3 newSuperior support */
cleanup:
free( dn );
- free( ndn );
+ if( ndn != NULL ) free( ndn );
free( newrdn );
if ( newSuperior != NULL )
free( newSuperior );