mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 16:13:51 +00:00
Fix code typo that inflicted unwanted debug output
This commit is contained in:
parent
dbb9b4930f
commit
c5f26567fb
@ -387,9 +387,10 @@ int overlay_get_nexthop(unsigned char *d,unsigned char *nexthop,int *nexthoplen,
|
|||||||
if (neh->scores[i]>neh->scores[*interface]) *interface=i;
|
if (neh->scores[i]>neh->scores[*interface]) *interface=i;
|
||||||
}
|
}
|
||||||
if (neh->scores[*interface]<1) {
|
if (neh->scores[*interface]<1) {
|
||||||
if (debug&DEBUG_OVERLAYROUTING)
|
if (debug&DEBUG_OVERLAYROUTING) {
|
||||||
*interface=-1;
|
*interface=-1;
|
||||||
WHYF("No open path to %s\n",overlay_render_sid(neh->node->sid));
|
WHYF("No open path to %s\n",overlay_render_sid(neh->node->sid));
|
||||||
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (0) printf("nexthop is %s\n",overlay_render_sid(nexthop));
|
if (0) printf("nexthop is %s\n",overlay_render_sid(nexthop));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user