From d18224cc657abb18fbaad2bddd3a3c9bbe937ae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Sun, 21 Sep 2014 02:50:31 +0200 Subject: [PATCH] Fix terminal output for multiple ports per service --- ponymap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ponymap.c b/ponymap.c index 6b8155c..a4cae9f 100644 --- a/ponymap.c +++ b/ponymap.c @@ -1356,6 +1356,8 @@ target_dump_terminal (struct target *self, struct target_dump_data *data) u->service->name, u->transport->name)); s_tail = &service->next; p_tail = &service->children; + + last_service = u->service; } port = *p_tail = node_new (xstrdup_printf ("port %" PRIu16, u->port));