From feabf98d002eb2c9ecb80e3bcbe3c9efd4ed382e Mon Sep 17 00:00:00 2001
From: Vladislav Grishenko <themiron@mail.ru>
Date: Mon, 18 Nov 2019 04:05:26 +0500
Subject: ipv6: dhcpv6: fix pd gateway logging

---
 accel-pppd/ipv6/dhcpv6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'accel-pppd')

diff --git a/accel-pppd/ipv6/dhcpv6.c b/accel-pppd/ipv6/dhcpv6.c
index 6daed667..fc9f4ca1 100644
--- a/accel-pppd/ipv6/dhcpv6.c
+++ b/accel-pppd/ipv6/dhcpv6.c
@@ -188,7 +188,7 @@ static void insert_dp_routes(struct ap_session *ses, struct dhcpv6_pd *pd, struc
 		} else if (conf_verbose) {
 			inet_ntop(AF_INET6, &p->addr, str1, sizeof(str1));
 			if (addr)
-				inet_ntop(AF_INET6, &addr, str2, sizeof(str2));
+				inet_ntop(AF_INET6, addr, str2, sizeof(str2));
 			log_ppp_info2("dhcpv6: route add %s/%i%s%s\n", str1, p->prefix_len,
 					addr ? " via " : "", str2);
 		}
-- 
cgit v1.2.3