}
if(outgoing->state == OUTGOING_CANONICAL) {
- if(outgoing->aip || get_next_cfg(mesh, outgoing, "CanonicalAddress")) {
+ while(outgoing->aip || get_next_cfg(mesh, outgoing, "CanonicalAddress")) {
if(get_next_ai(mesh, outgoing)) {
return true;
} else {
}
if(outgoing->state == OUTGOING_RECENT) {
- if(outgoing->aip || get_next_cfg(mesh, outgoing, "Address")) {
+ while(outgoing->aip || get_next_cfg(mesh, outgoing, "Address")) {
if(get_next_ai(mesh, outgoing)) {
return true;
} else {
if(!check_id(name)) {
logger(mesh, MESHLINK_ERROR,
- "Invalid name for outgoing connection in %s line %d",
- cfg->file, cfg->line);
+ "Invalid name for outgoing connection in line %d",
+ cfg->line);
free(name);
continue;
}