while (depth < 16)
{
+ if (next == NULL)
+ return NULL;
chptr = find_channel(next);
/* Can only forward to existing channels */
if (chptr == NULL)
i = can_join(source_p, chptr, key, &next);
if (i == 0)
return chptr;
- if (next == NULL)
- return NULL;
depth++;
}