ripd: print md5 auth digest correctly
The dump of the md5 hash was missing one byte of the hash.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
diff --git a/ripd/ripd.c b/ripd/ripd.c
index a5bc067..da9e7b0 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -746,9 +746,9 @@
zlog_debug (" family 0x%X type %d (MD5 data)",
ntohs (rte->family), ntohs (rte->tag));
zlog_debug (" MD5: %02X%02X%02X%02X%02X%02X%02X%02X"
- "%02X%02X%02X%02X%02X%02X%02X",
+ "%02X%02X%02X%02X%02X%02X%02X%02X",
p[0], p[1], p[2], p[3], p[4], p[5], p[6],
- p[7], p[9], p[10], p[11], p[12], p[13],
+ p[7], p[8], p[9], p[10], p[11], p[12], p[13],
p[14], p[15]);
}
else