Tru64 5.1 alpha's <pthread.h> turns "leave" into an exception handling keyword.
}
fd = 1;
if ( rc )
- goto leave;
+ goto done;
} else {
/* Queueing up for tool mode */
if(ck->entries == NULL) {
"=> ldif_enum_tree: failed to opendir %s (%d)\n",
path->bv_val, errno, 0 );
}
- goto leave;
+ goto done;
}
while(1) {
free(ptr);
}
}
-leave:
+done:
if ( fd ) entry_free( e );
return rc;
}
}
if ( rc != LDAP_SUCCESS )
- goto leave;
+ goto done;
/* Parse all the values and check for simple syntax errors before
* performing any set actions.
*/
rc = check_name_index( last, colst[0]->co_type, e, rs, renum );
if ( rc )
- goto leave;
+ goto done;
init_config_argv( ca );
ct = config_find_table( colst, nocs, a->a_desc );
if ( !ct ) continue; /* user data? */
rc = check_vals( ct, ca, a, 1 );
- if ( rc ) goto leave;
+ if ( rc ) goto done;
}
/* Basic syntax checks are OK. Do the actual settings. */
rc = config_parse_add( ct, ca );
if ( rc ) {
rc = LDAP_OTHER;
- goto leave;
+ goto done;
}
}
}
Debug(LDAP_DEBUG_ANY, "%s: %s (%s)!\n",
ca->log, ca->msg, ca->argv[1] );
rc = LDAP_OTHER;
- goto leave;
+ goto done;
}
}
last->ce_kids = ce;
}
-leave:
+done:
if ( rc ) {
if ( (colst[0]->co_type == Cft_Database) && ca->be ) {
if ( ca->be != frontendDB )
ch_free( c->tline );
if ( fp_parse_line( c ) ) {
rc = 1;
- goto leave;
+ goto done;
}
if ( c->argc < 1 ) {
c->log, 0, 0);
#ifdef SLAPD_CONF_UNKNOWN_BAILOUT
rc = 1;
- goto leave;
+ goto done;
#else /* ! SLAPD_CONF_UNKNOWN_BAILOUT */
continue;
#endif /* ! SLAPD_CONF_UNKNOWN_BAILOUT */
Debug(LDAP_DEBUG_CONFIG, "%s: unknown user type <%s>\n",
c->log, c->argv[0], 0);
rc = 1;
- goto leave;
+ goto done;
} else if ( rc == ARG_BAD_CONF ) {
rc = 1;
- goto leave;
+ goto done;
}
} else if ( c->bi && !c->be ) {
#endif /* ! SLAPD_CONF_UNKNOWN_BAILOUT */
default:
rc = 1;
- goto leave;
+ goto done;
}
}
#endif /* ! SLAPD_CONF_UNKNOWN_BAILOUT */
default:
rc = 1;
- goto leave;
+ goto done;
}
}
#endif /* ! SLAPD_CONF_UNKNOWN_BAILOUT */
default:
rc = 1;
- goto leave;
+ goto done;
}
}
c->log, *c->argv, 0);
#ifdef SLAPD_CONF_UNKNOWN_BAILOUT
rc = 1;
- goto leave;
+ goto done;
#else /* ! SLAPD_CONF_UNKNOWN_BAILOUT */
continue;
#endif /* ! SLAPD_CONF_UNKNOWN_BAILOUT */
rc = 0;
-leave:
+done:
ch_free(c->tline);
fclose(fp);
ch_free(c->argv);