Fix code typo that inflicted unwanted debug output

This commit is contained in:
Andrew Bettison 2012-05-09 12:51:59 +09:30
parent dbb9b4930f
commit c5f26567fb

View File

@ -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));