}
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 {