summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/routing.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-03-29 17:55:14 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-03-29 17:56:47 +0200
commitd90c66cc6beba511f6bcc48a3ea3fc4e774b5ab8 (patch)
treefe2b5bc70090c5c4bd29a2e8f2e11c19436dea24 /src/ipcpd/normal/routing.c
parente43fd05ba896ad5b4ac390f6097d6e6a06308f28 (diff)
downloadouroboros-d90c66cc6beba511f6bcc48a3ea3fc4e774b5ab8.tar.gz
ouroboros-d90c66cc6beba511f6bcc48a3ea3fc4e774b5ab8.zip
ipcpd: normal: Add graph regression test
This adds a regression test for the graph component to test the routing table.
Diffstat (limited to 'src/ipcpd/normal/routing.c')
-rw-r--r--src/ipcpd/normal/routing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/normal/routing.c b/src/ipcpd/normal/routing.c
index bd41b489..cc6cdca8 100644
--- a/src/ipcpd/normal/routing.c
+++ b/src/ipcpd/normal/routing.c
@@ -92,7 +92,7 @@ static void * calculate_pff(void * o)
table = NULL;
n_table = graph_routing_table(routing.graph,
ipcpi.dt_addr, &table);
- if (table == NULL) {
+ if (n_table < 0) {
sleep(RECALC_TIME);
continue;
}