summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/routing.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-03-21 17:14:50 +0000
committerdimitri staessens <dimitri.staessens@ugent.be>2017-03-21 17:14:50 +0000
commit411f2fba77388ba8b2258bcb5380152460f8e8e8 (patch)
tree6977229f9148774a4338c489134207ab8b0f5c9f /src/ipcpd/normal/routing.c
parent122202761b3fb09a883ca8081eb1eb4243cd484d (diff)
parent1d0e634a651f234c3942c6b82164470fa2432058 (diff)
downloadouroboros-411f2fba77388ba8b2258bcb5380152460f8e8e8.tar.gz
ouroboros-411f2fba77388ba8b2258bcb5380152460f8e8e8.zip
Merged in sandervrijders/ouroboros/be-fixes (pull request #409)
ipcpd: normal: Several bugfixes
Diffstat (limited to 'src/ipcpd/normal/routing.c')
-rw-r--r--src/ipcpd/normal/routing.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ipcpd/normal/routing.c b/src/ipcpd/normal/routing.c
index 0b82b70d..211becb4 100644
--- a/src/ipcpd/normal/routing.c
+++ b/src/ipcpd/normal/routing.c
@@ -97,9 +97,10 @@ static int routing_neighbor_event(enum nb_event event,
size_t len;
uint8_t * data;
- sprintf(fso_name, "%" PRIx64 "-%" PRIx64,
+ path[0] = '\0';
+ sprintf(fso_name, "%" PRIu64 "-%" PRIu64,
ipcpi.dt_addr, conn.conn_info.addr);
- rib_path_append(rib_path_append(path, ROUTING_PATH), fso_name);
+ rib_path_append(rib_path_append(path, ROUTING_NAME), fso_name);
switch (event) {
case NEIGHBOR_ADDED: